[Solved] Calculate total of only the unpaid bills

Discuss the spreadsheet application
Post Reply
endbrown
Posts: 3
Joined: Tue Sep 18, 2018 12:00 am

[Solved] Calculate total of only the unpaid bills

Post by endbrown »

I have created a budget using spreadsheet and have used it for years. One column lists all the bills I have due for the month, with a total of the column at the bottom. I would like to find a way to have that simple equation at the bottom of the delete a cell when the date the bill was paid is added into another cell.

I attached an example. When put the date that I paid the mortgage in cell D3 I'd like "D3" to be deleted from the equation in cell B8.

Thank you.
Attachments
Budget example.ods
(10.95 KiB) Downloaded 151 times
Last edited by MrProgrammer on Sun Dec 05, 2021 9:35 am, edited 1 time in total.
Reason: Tagged ✓ [Solved]
Windows 10, OpenOffice 4.1.3
endbrown
Posts: 3
Joined: Tue Sep 18, 2018 12:00 am

Re: Change an equation in one cell when another Cell =someth

Post by endbrown »

My apologies. Small typo in my post. On the last sentence I said I wanted "D3" deleted from the equation. I meant to write "B3"

I appreciate anyone's assistance with this.
Windows 10, OpenOffice 4.1.3
User avatar
Zizi64
Volunteer
Posts: 11359
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Change an equation in one cell when another Cell =someth

Post by Zizi64 »

Study the function SUMIF() in the Help.
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.
LeslieS
Posts: 22
Joined: Sat Nov 27, 2021 6:18 am

Re: Calculate total of only the unpaid bills

Post by LeslieS »

Expanding on what ZiZi64 said:

Code: Select all

=SUMIF(D3:D7,"=",B3:B7)    

I note this because it may not be obvious or easy to find how to create the criterion where the cell is anything but empty.
That seems to be done with the "=".
LibreOffice 7.1.6.2 on Windows 8
User avatar
Zizi64
Volunteer
Posts: 11359
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Calculate total of only the unpaid bills

Post by Zizi64 »

Here are two similar ways - applied in your sample file:
Budget example_Zizi64.ods
(13.04 KiB) Downloaded 136 times
It calculates the Paid ones, but (I hope) you can modify it to reverse.
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
robleyd
Moderator
Posts: 5082
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: Calculate total of only the unpaid bills

Post by robleyd »

You might also look at the functions NOT() and ISBLANK()
Cheers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.2.2; SlackBuild for 24.2.2 by Eric Hameleers
User avatar
MrProgrammer
Moderator
Posts: 4905
Joined: Fri Jun 04, 2010 7:57 pm
Location: Wisconsin, USA

Re: Calculate total of only the unpaid bills

Post by MrProgrammer »

endbrown wrote:I would like to find a way to have that simple equation at the bottom of the delete a cell when the date the bill was paid is added into another cell.
[Tutorial] The SUMPRODUCT function, example X06: Sum values in column Y where column X is empty
LeslieS wrote:=SUMIF(D3:D7,"=",B3:B7)
The calculation cannot be accomplished like that in Calc because feeble SUMIF ignores cells where the criteria (D3:D7) is empty. SUMPRODUCT does not have that restriction.

If this solved your problem please go to your first post use the Edit button and add [Solved] to the start of the subject field. Select the green checkmark icon at the same time.

[Tutorial] Ten concepts that every Calc user should know
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.6.3, iMac Intel.   The locale for any menus or Calc formulas in my posts is English (USA).
Post Reply