VLOOKUP Skip Row If Not A Match?

Pmarsden94

New Member
Joined
Nov 19, 2020
Messages
7
Office Version
  1. 365
Platform
  1. Windows
Hi,

I know this is Excel based but most of the formulas work for Google Sheets.

I am trying to get VLOOKUP to SKIP a row if the data is not a MATCH....

See image below of the Data Source
Master Table.PNG


Then I have 10 separate tabs where we input the Agent Allocation which a VLOOKUP on the separate tabs will pull this data through. See below the image where the tab is trying to pull the data too.

Vlookup Error.PNG




Instead of returning the exact row location where the matching data is I want it to skip the rows that don't match and just keep adding the next matching row. Like the picture below....

Vlookup correct.PNG




I would like to resolve this without Script as this requires every user to have a Gmail login in order for the Script to work for each person.

Thanks!!!
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Whilst I know nothing about Sheets, rather than using a lookup formula why not use the Filter function?
 
Upvote 0
Insert a new column 'A' in the output sheet so that everything is moved to the right by 1 column.

Enter a heading in A1 (this will not work if A1 is empty) then enter this formula into A2 and fill down as necessary.
Excel Formula:
=IF(A1="","",IFERROR(AGGREGATE(15,6,ROW(Source!$A$2:$A$200)/(Source!$A$2:$A$200="Name"),ROWS($A$2:$A2)),""))
In B2, then fill right and down
Excel Formula:
=IF($A2="","",INDEX(Source!B:B,$A2))
Note that in both formulas, Source! refers to the first image in your post. "Name" refers to the name of the agent that should be allocated on that sheet.
 
Upvote 0
Oops, that could be a problem.

Think I prefer your suggestion though, I had forgotten that sheets does have a filter function.
 
Upvote 0
Insert a new column 'A' in the output sheet so that everything is moved to the right by 1 column.

Enter a heading in A1 (this will not work if A1 is empty) then enter this formula into A2 and fill down as necessary.
Excel Formula:
=IF(A1="","",IFERROR(AGGREGATE(15,6,ROW(Source!$A$2:$A$200)/(Source!$A$2:$A$200="Name"),ROWS($A$2:$A2)),""))
In B2, then fill right and down
Excel Formula:
=IF($A2="","",INDEX(Source!B:B,$A2))
Note that in both formulas, Source! refers to the first image in your post. "Name" refers to the name of the agent that should be allocated on that sheet.
Hi, Thanks for this...

I have done this but is returning nothing...
 
Upvote 0
Oops, that could be a problem.

Think I prefer your suggestion though, I had forgotten that sheets does have a filter function.
The filter option does work to remove blanks but the agent would have to keep refreshing this... I am trying to make it as automated as possible.
 
Upvote 0
I am not referring to using the autofilter, but the filter function.
Something like
Excel Formula:
=FILTER(Data!A2:M1000,Data!A2:A1000="Dan Carter")
 
Upvote 0
I am not referring to using the autofilter, but the filter function.
Something like
Excel Formula:
=FILTER(Data!A2:M1000,Data!A2:A1000="Dan Carter")
Where on the receiving sheet would I put this formula?
 
Upvote 0
Wherever you want the data to start.
 
Upvote 0

Forum statistics

Threads
1,215,463
Messages
6,124,965
Members
449,201
Latest member
Jamil ahmed

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