Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mrzeigler

macrumors regular
Original poster
Oct 15, 2005
159
3
Pittsburgh
Using numbers, I want to set up a formula to do the following:

* If Column E = "Y," then subtract the value of column I from the value of column L.

* If Column E is anything but a "Y", return a value of "0".


I've never had to deal with a conditional in a formula before, and my searches keep revealing tips for conditional formatting.

Any help would be appreciated. Thanks.


UPDATE: Nevermind. I figured it out.
 
Last edited:

jacg

macrumors 6502a
Jan 16, 2003
975
88
UK
I'm not in front of numbers right now but have you tried entering...

=if(

Pretty quickly you should get screen tips advising you of the correct syntax.

Good luck.
 

LongSticks

macrumors 6502
Jul 22, 2012
301
0
Kent, UK
Should work

Using numbers, I want to set up a formula to do the following:

* If Column E = "Y," then subtract the value of column I from the value of column L.

* If Column E is anything but a "Y", return a value of "0".


I've never had to deal with a conditional in a formula before, and my searches keep revealing tips for conditional formatting.

Any help would be appreciated. Thanks.


UPDATE: Nevermind. I figured it out.

For anybody else!

=if(e1="Y", L1-I1,"0")

=(conditional, if true, if false)
 

saberahul

macrumors 68040
Nov 6, 2008
3,645
111
USA
syntax is generally similar to that of excels. googling if/then + excel will be of help to anyone else with similar questions.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.