Using IsBlank statement to evaluate given fields and update corresponding cells.

ColdplayCoaster

New Member
Joined
Mar 5, 2011
Messages
31
Greetings all!

I am trying to use a nested IsBlank function to generate a pre-defined label (B1, C1, D1) into another field given that the corresponding column is not blank (B2:B4, etc...) As each column is given text, the label field should update with the header for it. For example, the user inputs text into B2 and the field should update to "B1". To add more frustration, it should evaluate the entire row and select only the "highest ranking" last level indicated ("D" ranking highest). Is this possible to do with IsBlank or have I reached a limitation with this particular function. Any and all help is greatly appreciated in advance.
Excel Workbook
ABCDE
1NAMELEVEL 3LEVEL 2LEVEL 1Highest Completed
2Mr. SmithX
3Mr. BobXXX
4Mrs. JaneXX
Sheet1
Excel 2007
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Welcome to the MrExcel board!

If the entries under the 'Level' headings are text, then try this formula, copied down.

Excel Workbook
ABCDE
1NAMELEVEL 3LEVEL 2LEVEL 1Highest Completed
2Mr. SmithXLEVEL 3
3Mr. BobXXXLEVEL 1
4Mrs. JaneXXLEVEL 2
Level Reached
 
Upvote 0
That was exactly what I was looking to accomplish. Thank you for your speedy, accurate response. I most certainly have added MrExcel to my bookmarks!
 
Upvote 0
Another question not to bump but didn't want to create another thread...

Using the code provided by Peter_SSs, I now have working values for my fields, however if there are no values in the field to show, the formula defaults to #N/A. Is there any way to change this to a blank cell until values are provided in any of the fields. I "tried" what would make sense to me in B45, but alas, no success. Thanks for all your excellent ideas out here.
Excel Workbook
ABCDEFGH
42Jo Troller4062 L3XX
43Brittani Eatmon4062 L4X
44Kylie Torres4062 L4X
45Ashley Coates#N/A
46#N/A
47#N/A
4062 Checklists
Excel 2007
Cell Formulas
RangeFormula
B42=INDEX(D$1:G$1,MATCH(REPT("z",255),D42:G42))
B43=INDEX(D$1:G$1,MATCH(REPT("z",255),D43:G43))
B44=INDEX(D$1:G$1,MATCH(REPT("z",255),D44:G44))
B45=IF(INDEX(D$1:G$1,MATCH(REPT("z",255),D45:G45))="#N/A", "")
B46=INDEX(D$1:G$1,MATCH(REPT("z",255),D46:G46))
B47=INDEX(D$1:G$1,MATCH(REPT("z",255),D47:G47))
 
Upvote 0
Since this is a direct follow-up to the original question, this is the best place to post. If it is unrelated, best to start a new thread.

For row 42:
=IF(COUNTA(D42:G42),INDEX(D$1:G$1,MATCH(REPT("z",255),D42:G42)),"")


Or if you are using Excel 2007+ you could try
=IFERROR(INDEX(D$1:G$1,MATCH(REPT("z",255),D42:G42)),"")
 
Upvote 0
You said if I was "using Excel 2007"...

Does this apply to only Worksheets created in 2007 or in worksheets that may be saved in a 2003 format (i.e. backwards compatibility)? The reason I ask is because the end-use computers between creation and use are running these different versions.
 
Last edited:
Upvote 0
If the file may be used on a machine running, say, Excel 2003 it will throw an error because IFERROR is a function that was not available in that version. So if the file may be opened using an older version, then use the first formula from my previous post.
 
Upvote 0
Cheers.

I did mean to mention your attempt to deal with the error in row 45 in post #4. You were heading in the right direction. The correct syntax would have been:

=IF(ISNA(INDEX(D$1:G$1,MATCH(REPT("z",255),D45:G45))),"",INDEX(D$1:G$1,MATCH(REPT("z",255),D45:G45)))

In fact, you could use this formula but you can see that it is not as compact (& not as efficient) as the one using COUNTA.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,729
Members
452,939
Latest member
WCrawford

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