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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
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,216,591
Messages
6,131,629
Members
449,658
Latest member
JasonEncon

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