Help with IF function

bluegreen

New Member
Joined
Mar 20, 2023
Messages
1
Office Version
  1. 365
Platform
  1. MacOS
Hi All,

I am working on a spreadsheet with a total and a separate column with options Y or N.




XTOTALVALUETOTAL - ANY Y
X1SUM XY/NSUM X- ANY Y
I want to use a formula to the effect of IF value=Y, subtract value X1 from the SUM X, IF value=N, do nothing.

Any help would be greatly appreciated.
Cheers
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Hi & welcome to MrExcel.
How about
Fluff.xlsm
ABCD
1
211Y0
323N 
436N 
5410N 
6515Y10
7621Y15
8728N 
Master
Cell Formulas
RangeFormula
B2:B8B2=SUM(A$2:A2)
D2:D8D2=IF(C2="Y",B2-A2,"")
 
Upvote 0
Hi & Welcome to MrExcel.

Try

Products.xlsx
ABCDE
1XTOTALVALUETOTAL - ANY Y
2X1SUM XY/NSUM X- ANY Y
315Y4
415N 
5
6
Sheet8
Cell Formulas
RangeFormula
D3:D4D3=IF(C3="Y",B3-A3,"")
 
Upvote 0

Forum statistics

Threads
1,215,734
Messages
6,126,542
Members
449,316
Latest member
sravya

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