Formula Request (if possible) - VLookup or Index/Match using a criteria and ignoring blanks

The Great SrH

Board Regular
Joined
Jan 16, 2015
Messages
179
[TABLE="class: grid, width: 750, align: center"]
<tbody>[TR]
[TD][/TD]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[TD]D
[/TD]
[TD]E
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Joe Bloggs
[/TD]
[TD]1.2
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]Your Manager
[/TD]
[TD]Job Level
[/TD]
[TD]Team Morale
[/TD]
[TD]My Morale
[/TD]
[TD]Development
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]Joe Bloggs
[/TD]
[TD]1.2
[/TD]
[TD]This comment is for Option 1
[/TD]
[TD]Just for visual
[/TD]
[TD]Just for visual
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]Betty Sue
[/TD]
[TD]1.2
[/TD]
[TD]This comment is a dummy
[/TD]
[TD][/TD]
[TD]Just for visual
[/TD]
[/TR]
[TR]
[TD]5
[/TD]
[TD]Joe Bloggs
[/TD]
[TD]1.2
[/TD]
[TD][/TD]
[TD]Just for visual
[/TD]
[TD]Just for visual
[/TD]
[/TR]
[TR]
[TD]6
[/TD]
[TD]Joe Bloggs
[/TD]
[TD]1.3
[/TD]
[TD]This comment is for Option 1 & 2
[/TD]
[TD]Just for visual
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


Hi all,


I don't think I'll be able to do this using formulas, but if possible - I'd like to!


I'm looking to do some sort of Index/Match or VLookup to return comments from a table, ignoring blanks and only if the criteria is met.


In A1 will be a drop down list with the managers names. (B1 will also be a drop-down list for Job levels but this is for Option 2)


The formula I am asking for will be in a second sheet, and will be copied down around 20 rows (hoping to return the next comment from range).


This is a two part question:

Option 1:


Lets say in my second sheet the formulas start in A1, I would like the return values to be:

A1 - This comment is for Option 1
A2 - This comment is for Option 1 & 2


The reasons for the return are that it has matched whatever the value is in A1 (Joe Bloggs), and it has searched Column C3-C6 to find the comments that matched the criteria.


Option 2:

This basically needs to be the same search but with an additional criteria. This time we want to check Column B (Job Level) of the table to match what's in B1.


So the only return from my preview in the second sheet would be:
A1 - This comment is for Option 1 & 2


I hope this is clear.


Any help will be greatly appreciated.
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Hi Peter,

Thanks so much for responding as always!


In the Aggregate part of the formula, what does "15,6" mean?


My data tab is slightly different to what I provided in my example, so i'm just trying to learn how to do it the way I need it to work!


Thanks again
 
Last edited by a moderator:
Upvote 0
Best not to fully quote long posts as it makes the thread harder to read/navigate. If you want to quote, quote small, relevant parts only. I've actually removed the quote from your post as you didn't refer to it anyway. :)

In the Aggregate part of the formula, what does "15,6" mean?
15 is like the SMALL function. I'm looking for the smallest row number that meets the conditions, then the second smallest row number ...

6 means to ignore errors. Errors are (deliberately) produced by the division in the function for rows that do not meet the conditions.

Refer: https://support.office.com/en-us/article/aggregate-function-43b9278e-6aa7-4f17-92b6-e19993fa26df
 
Upvote 0

Forum statistics

Threads
1,223,898
Messages
6,175,274
Members
452,628
Latest member
dd2

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