IF command?

cambam33

New Member
Joined
Aug 12, 2011
Messages
1
I have an assignment due soon however i cannot the the IF command working,well im not even sure if thats the right function to be using. But basically i want a formula so that excel displays a primary contact according to some rules. e.g. if the street number,address,suburb and postcode are all non empty i want the primary contact column to display POST, however if any one of those fields is empty then i'd like it to look at another column, if that column is full primary contact will display phone, however if its not full id like it to display mail by checking different colums ETC. the formula i have now that won't work is

=IF(ISBLANK(F2:I2),"POST",IF(ISBLANK(K2:L2),"TELEPHONE",IF(ISBLANK(M2),"ELECTRONIC MAIL",IF(ISBLANK(F2:M2),"NONE"))))

Any help is appreciated :)

Thanks.
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Maybe

=IF(COUNTA(F2:I2)=4,"POST",IF(COUNTA(K2:L2)=2,"TELEPHONE",IF(COUNTA(M2)=1,"ELETRONIC MAIL","NONE")))

HTH

M.
 
Upvote 0

Forum statistics

Threads
1,224,595
Messages
6,179,799
Members
452,943
Latest member
Newbie4296

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