[Solved] How to copy a non-blank cell to another cell

Discuss the spreadsheet application
Post Reply
needsleep
Posts: 12
Joined: Thu Jan 16, 2014 9:49 pm

[Solved] How to copy a non-blank cell to another cell

Post by needsleep »

I have Column T with either numbers, characters, or no entry.
I have Column E in which I would like to use a formula to copy what's in Col T.

=IF(NOT(ISBLANK(T7)),T7,"")
shows TRUE or FALSE.

How do I get the value itself copied over?
Will "" above enter a null into the cell in Col E?

Thanks,
Last edited by Hagar Delest on Thu May 24, 2018 9:58 pm, edited 1 time in total.
Reason: tagged [Solved].
FJCC
Moderator
Posts: 9280
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: how to copy a non-blank cell to another cell

Post by FJCC »

Check the cell format in the menu Format -> Cells -> Numbers Tab. Is the Category set to Boolean?
Will "" above enter a null into the cell in Col E?
The "" is an empty string. The cell will not be blank, if that is what you mean by a null.
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
User avatar
Zizi64
Volunteer
Posts: 11362
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: how to copy a non-blank cell to another cell

Post by Zizi64 »

The formula

Code: Select all

=IF(NOT(ISBLANK(T7));T7;"")
works fine for me in the AOO 4.1.5 portable.
Use the regular semicolon ; separator character instead of the comma. (The comma is the decimal separator in many languages.)
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
Zizi64
Volunteer
Posts: 11362
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: how to copy a non-blank cell to another cell

Post by Zizi64 »

shows TRUE or FALSE.
Maybe the result cell is formatted as "Boolean". The zero numeric value (like the strings and the empty cell will give the result "false", and the non zero values will give the result "true".
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
needsleep
Posts: 12
Joined: Thu Jan 16, 2014 9:49 pm

Re: how to copy a non-blank cell to another cell

Post by needsleep »

Formatting was NUMBER. I changed it to TEXT, and changed the formula to use semi-colons and now it works perfectly.
Thank you both, @FJCC, @Zizi64.
OpenOffice 4.1.1
Win 7/64
User avatar
Lupp
Volunteer
Posts: 3553
Joined: Sat May 31, 2014 7:05 pm
Location: München, Germany

Re: how to copy a non-blank cell to another cell

Post by Lupp »

Sorry. This won't work in the long run.

As soon as you edit the formuala in a cell having applied the 'Numbers' format 'Texct' (@ as code), the edited formula will itself be interpreted as the text content of the cell. No calculation, no result returned.

To switch off a wrongly applied "automatic format" better copy/paste the format of a not infected cell or go 2 steps:
-1- Select a special 'Numbers' format.
-2- Select the common 'Number' with code 'General' (or 'Standard' in some locales).
On Windows 10: LibreOffice 24.2 (new numbering) and older versions, PortableOpenOffice 4.1.7 and older, StarOffice 5.2
---
Lupp from München
needsleep
Posts: 12
Joined: Thu Jan 16, 2014 9:49 pm

Re: [Solved] How to copy a non-blank cell to another cell

Post by needsleep »

And that too, is exactly what happened. Thanks for pointing me to the solution.
OpenOffice 4.1.1
Win 7/64
Post Reply