V-Lookup, return the next string

San Antonio Heat

Active Member
Joined
Oct 10, 2003
Messages
333
Office Version
  1. 2019
Platform
  1. Windows
I have data on a sheet called "returns" where data is stored, could be multiple lines of the same data just different quantities

On another sheet called "Looking for Something", in cell C5, you type in a part# (Example 32193). It will provide a lot of data from multiple pages that are hidden.

In D17 I am trying to find the first listing by searching the return sheet and finding in the A column the first 32193. I am using this formua
=IFERROR(VLOOKUP($C$5,returns!$A:$I,4,1),"")
In E17 I use this formula =IFERROR(VLOOKUP($C$5,returns!A:I,8,0),"") and in F17 I use this formula =IFERROR(VLOOKUP($C$5,returns!A:I,9,0),"")

In D18 I am trying to find the next listing using the part# in cell C5. This formula used to work but it no longer works for some reason and not sure why.
=IFERROR(VLOOKUP($C$5&"1",returns!$A:$I,4,0),"")

D19 =IFERROR(VLOOKUP($C$5&"2",returns!$A:$I,4,0),"")

I attached a couple of pictures. Any idea why it won't find the next match?
 

Attachments

  • mrexcel1.png
    mrexcel1.png
    189.9 KB · Views: 14
  • mrexcel2.png
    mrexcel2.png
    119.6 KB · Views: 16

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
This formula used to work but it no longer works for some reason
No matter how sure you are that it once did, that formula would never work for what you want it to do. What it would in fact do is return the first match for "321931" or "321932" (if there was a match).

To find subsequent matches you will need to use the FILTER function (if you have a new enough version of excel) or an index array formula for older versions.

Please update your account details (by clicking on the link in my signature block) to show which version of excel you are currently using. Remember to scroll to the bottom and click 'Save changes' after selecting a version.
 
Upvote 0

Forum statistics

Threads
1,215,028
Messages
6,122,749
Members
449,094
Latest member
dsharae57

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