Two Formula in one cell - SUM If higher than number and change

greaty

New Member
Joined
Aug 29, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Sorry I'm very beginner at Excel.
I'm trying to create a spreadsheet for bookings on my house.
I'm trying to do two formulas into one cell.

Basically, i want the 'Remaining Balance' Cells to display the answer for "Booking Price" Minus "Deposit Paid'
EG: booking price is $100 - Deposit paid $50. Remaining Balance $50.
That is easy with just Cell 1 minus Cell 2 = remaining balance.
However, i also want the remaining balance to display "PAID" if the deposit paid cells are '0'

I've made a formula to do just that
=IF(G7=0,"PAID",F7)
So if the deposit cell is "0" a "PAID" will show up in the remaining balance.
How can I also add IF G7 is Greater than 1 then do the normal sum of F7-G7 to get the remaining balance.


=IF(G7=0,"PAID",F7) OR)IF) G7 <1 THEN do SUM F7-G7)
Something like that lol

Sorry if this is confusing!
 

Attachments

  • exc.jpg
    exc.jpg
    122.3 KB · Views: 16

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
=IF(G7=0,"PAID",IF( G7>1,F7-G7,F7))
so this means if G7=0 then set to "PAID" if not check if greater than 1. If it is F7-G7 otherwise set to F7
 
Upvote 0
=IF(G7=0,"PAID",IF( G7>1,F7-G7,F7))
so this means if G7=0 then set to "PAID" if not check if greater than 1. If it is F7-G7 otherwise set to F7
Wouldn't that mean the first 2 rows in the OP's image also return "PAID" (unless column G is populated by a formula returning "", in which case an error would occur)?

@ greaty
Welcome to the MrExcel board!

This could be tried instead. I am also assuming that you don't really need G to be greater than 1, simply not 0.

23 08 29.xlsm
FGH
6PriceDepositBalance
790,000.0090,000.00
8195,000.00195,000.00
91,340,000.000PAID
101,160,000.00348,000.00812,000.00
111,120,000.00336,000.00784,000.00
12930,000.000PAID
Balance
Cell Formulas
RangeFormula
H7:H12H7=IF(G7&""="0","PAID",F7-G7)


If column G does happen to be a formula and those empty-looking cells actually contain "", then change the formula to
Excel Formula:
=IF(G7&""="0","PAID",F7-N(G7))
 
Upvote 0
Wouldn't that mean the first 2 rows in the OP's image also return "PAID" (unless column G is populated by a formula returning "")?

@ greaty
Welcome to the MrExcel board!

This could be tried instead. I am also assuming that you don't really need G to be greater than 1, simply not 0.

23 08 29.xlsm
FGH
6PriceDepositBalance
790,000.0090,000.00
8195,000.00195,000.00
91,340,000.000PAID
101,160,000.00348,000.00812,000.00
111,120,000.00336,000.00784,000.00
12930,000.000PAID
Balance
Cell Formulas
RangeFormula
H7:H12H7=IF(G7&""="0","PAID",F7-G7)


If column G does happen to be a formula and those empty-looking cells actually contain "", then change the formula to
Excel Formula:
=IF(G7&""="0","PAID",F7-N(G7))
YES!! That worked perfectly!

Thank you very much, sorry for the confusion!
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,187
Members
452,616
Latest member
intern444

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top