IF function for multiple cells

Boomboomsticks

New Member
Joined
Apr 17, 2018
Messages
2
Hi guys,

Hoping you can help me out, I'm trying to keep track of how much my friends owe me for an event. So I've created a sheet which has the total number of money that I'm owed by all of them.

I have a two cells at the bottom, a 'Total' and a 'Remaining' cell (which currently both are the same number) and a 'Paid' column which if they've paid I put 'No' or 'Yes'. What I would like to do is hopefully create a simple function so that the 'Remaining' cell looks at the Paid column and if there's a 'Yes' in one of the cells then it reduces the number by 15. However, I can only get the cell to reduce by 15 once and not sure how to get it to look at all cells in that column and reduce by 15 for each 'Yes'.

This is the basic function I have: =IF(E4="No",C19-15)
C19 being the 'Remaining' cell.

Any help would be appreciated.

Thanks.
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Re: Help with the IF function for multiple cells

you can try to count the number of No's in Column E, and time 15 to take away from the remaining like this

=COUNTIF(E:E,"No")

and

=C19-15*COUNTIF(E:E,"No")
 
Last edited:
Upvote 0
Re: Help with the IF function for multiple cells

you're welcome
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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