[Solved] If Then Else in one cell

Discuss the spreadsheet application
Post Reply
keithbakerlv
Posts: 11
Joined: Fri Mar 10, 2017 12:57 am

[Solved] If Then Else in one cell

Post by keithbakerlv »

I know how to use IF/Then/Else statements but is there any way to make once cell control an entire rows instead of putting the statement in multiple cells? The idea would be to add all of the values from Col C together that didn't have an integer in Col B and have them displayed in Cell A. For instance:

Cell A: IF (any cell in Col B is blank; add corresponding Row in Col C; 0)
Last edited by robleyd on Sat Sep 11, 2021 9:05 am, edited 3 times in total.
Reason: Add green tick
OpenOffice 4.1.3 on Windows 10 Pro
User avatar
Zizi64
Volunteer
Posts: 11361
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: If Then Else in one cell

Post by Zizi64 »

The idea would be to add all of the values from Col C together that didn't have an integer in Col B and have them displayed in Cell A. For instance:

Cell A: IF (any cell in Col B is blank; add corresponding Row in Col C; 0)
Please upload our ODF type sample file here with the "before"-"after" states.
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.
keithbakerlv
Posts: 11
Joined: Fri Mar 10, 2017 12:57 am

Re: If Then Else in one cell

Post by keithbakerlv »

When I was making the spreadsheet example to show you I accidentally stumbled on the answer.

It was: =SUMIF(C2:C7,">1",D2:D7) for invoices that have a paid date in Col C and =SUMIF(C2:C7,"",D2:D7) for invoices that don't have a paid date. Thank you for your help. I attached the example ODF so if anyone else gets here trying to figure out the same thing they can look at it.
Attachments
EX.ods
(10.01 KiB) Downloaded 93 times
OpenOffice 4.1.3 on Windows 10 Pro
Post Reply