IF Statement Criteria Across Multiple Columns

BNL

New Member
Joined
Feb 7, 2007
Messages
29
I need to develop an "IF" statement that will check the entries across 10 columns in a single row and if the criteria is met in any of the columns, a "HT" would be entered in cell A11.

An example would be as follows:

Cells A1:A10 could contain a number 1 thru 10 depending on the row. As example could be A1=1, B1="", C1=3, D1=4, E1="", etc.

The IF criteria would be IF cell A1 or C1 or E1 contains any number, the true value would be to enter the word "HT" and the false value would be to move on to the next column or leave A11 blank once it has looked at all columns with no criteria met.

If a number existed in either A or C or E, cell A11 would be "HT" or if criteria not met, A11 would be blank.

Once the IF statement finds a column that meets the true criteria, it can stop at that point. In other words, all three columns DO NOT have to meet the criteria - only one of the three columns (A or C or E) out of the 10 total columns.

I would greatly appreciate some direction on developing this IF statement.

Thanks and have a great weekend!

Barry
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Thanks Barry - you have helped me out before and your solution works well. Thanks again for your quick response - hope everything is going well in England.

Ron - your Count solution doesn't work as it's counting across all the cells and they may all have number entries EXCEPT for the criteria cells A, C, & E and it still show the true value of "HT" in A11. Sorry, I might not have been plain in my problem statement.
 
Upvote 0

Forum statistics

Threads
1,214,545
Messages
6,120,132
Members
448,947
Latest member
test111

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