if formula

Likeexcel

Active Member
Joined
Sep 2, 2009
Messages
308
Hello:
Current formula<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
IF(OR(AU15={300010,300011}),0,IF(ISNA(MATCH(AT15,$AV$6,0)),"",SUM(AL15:AO15)))<o:p></o:p>
<o:p> </o:p>
Want to add this:<o:p></o:p>
If AE7-AC7 is less than 0 than IF(OR(AU15={300010,300011}),0,IF(ISNA(MATCH(AT15,$AV$6,0)),"",SUM(AL15:AO15)))<o:p></o:p>
But if AE7-AC7 is greater than 0 than IF(OR(AU15={300010,300011}),0,IF(ISNA(MATCH(AT15,$AV$6,0)),"",SUM(AL15:AM15)))<o:p></o:p>
Thank you for the help.<o:p></o:p>
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Try something like this...

Code:
=IF(OR(AU15={300010,300011}),0,IF(ISNA(MATCH(AT15,$AV$6,0)),"",[COLOR="Red"]IF(AE7-AC7<0,SUM(AL15:AO15),SUM(AL15:AM15)[/COLOR])))
 
Upvote 0
Thank you, that works. However I'm getting a False error when there is no number. i've tried to put in IFERROR, but that didnt work.
any suggestions?

thank you again.
 
Upvote 0
What's a False error?

"when there is no number"; No number where?

"i've tried to put in IFERROR, but that didn't work"; show what you tried.
 
Upvote 0
=iferror(IF(OR(AU15={300010,300011}),0,IF(ISNA(MATCH(AT15,$AV$6,0)),"",IF(AE7-AC7<0,SUM(AL15:AO15),SUM(AL15:AM15))),"0",(IF(OR(AU15={300010,300011}),0,IF(ISNA(MATCH(AT15,$AV$6,0)),"",IF(AE7-AC7<0,SUM(AL15:AO15),SUM(AL15:AM15)))))


thank you,
 
Upvote 0
IFERROR function

Syntax
IFERROR(value, value_if_error)

=IFERROR(
IF(OR(AU15={300010,300011}),0,IF(ISNA(MATCH(AT15,$AV$6,0)),"",IF(AE7-AC7<0,SUM(AL15:AO15),SUM(AL15:AM15))))
,0)
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,291
Members
452,902
Latest member
Knuddeluff

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