Please help with TRICKY FORMULA

Status
Not open for further replies.
Joined
May 17, 2011
Messages
27
I have a worksheet with 30 columns across. In column A I want either a tick or a cross in each box to indicate whether all the columns have been filled in between columns B and AT.

Ideally it would be a tick if there are 4 or less blank columns on each row, a red cross if there are between 4-20 blank columns on each row and another symbol if there are 20+ blank fields.

Currently I am using this formula:

=LOOKUP(COLUMNS(B1:AT1)-COUNTA(B1:AT1),{0,1,25;"a","r","x"})

with webdings to illustrate the crosses/ticks etc. This one isn't working in terms of 1-4 blanks as a tick etc etc.

Thanks
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Just change the 1 to a 4..or 5...
Your definition has overlapping ranges...

it would be a tick if there are 4 or less blank columns on each row, a red cross if there are between 4-20 blank

Would 4 blanks be a tick (change to 5) or a red cross (change to 4) ?

=LOOKUP(COLUMNS(B1:AT1)-COUNTA(B1:AT1),{0,1,25;"a","r","x"})

=LOOKUP(COLUMNS(B1:AT1)-COUNTA(B1:AT1),{0,4,25;"a","r","x"})


Also, you can replace
COLUMNS(B1:AT1)-COUNTA(B1:AT1)
with
COUNTBLANK(B1:AT1)


Hope that helps.
 
Last edited:
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,224,587
Messages
6,179,740
Members
452,940
Latest member
rootytrip

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