Is SUMIF the answer

deanNYC

New Member
Joined
Feb 27, 2019
Messages
7
Morning,
I am trying to create a formula that will minus F51 by B59 if D59 =P, i have tried formula =SUMIF(D59,"P",F51-B59) but this creates an error. I am thinking SUMIF is not the correct formula I need to use as I am trying to subtract. Can any kind person please help me resolve this please?

My spreadsheet is my monthly outgoings which are 90% static the one I am trying to use a formula with is a debt which reduces on every payment till full payment is paid. That is what i want to display, how much left I have to pay.
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Hi, you just need to use an IF() function - you didn't say what should happen when D59 is not P - this just returns F51.

=IF(D59="P",F51-B59,F51)
 
Upvote 0
Hi,

Is the following formula of any help :

Code:
=f51-If(d59="P",b59,0)
 
Upvote 0

Forum statistics

Threads
1,215,324
Messages
6,124,250
Members
449,149
Latest member
mwdbActuary

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