Need help with IF statement

oli123

New Member
Joined
Nov 17, 2010
Messages
32
Hello, im looking to add an exception to my formula. Cell AN8 refer to various conditions but would also need to look up value in cell X8. If X8 is empty it would need to return $0. Some help would be much appreciated.
Excel Workbook
AN
8380.63
Sheet




Thanks a bunch !
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Hi oli,
maybe like this:

=IF(X8="",TEXT(X8,"$0"),IF(AND($D8="united states",AN$7="Challenger"),$AG8*0.8,IF(AND($D8="united states",AN$7="SGT"),$AG8*0.95,IF(AND($D8="Canada",$I8>=20),$AJ8,IF(AND($D8="Canada",$I8<=20),$AI8,IF(AND($D8="United States",$I8>=20),$AG8,IF(AND($D8="United States",$I8<=20),$AH8,"0")))))))

but do you want the reference to be working together with existing AND's statments?
 
Upvote 0
Hi oli,
maybe like this:

=IF(X8="",TEXT(X8,"$0"),IF(AND($D8="united states",AN$7="Challenger"),$AG8*0.8,IF(AND($D8="united states",AN$7="SGT"),$AG8*0.95,IF(AND($D8="Canada",$I8>=20),$AJ8,IF(AND($D8="Canada",$I8<=20),$AI8,IF(AND($D8="United States",$I8>=20),$AG8,IF(AND($D8="United States",$I8<=20),$AH8,"0")))))))

but do you want the reference to be working together with existing AND's statments?

Thank you Robert, yes it would be helpful if the following ref would also work with existing AND statements.

Cheers,
Oli
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,283
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