Forum Discussion
Value repeats in vlookup
- Aug 15, 2022
See the attached version. The formulas are array formulas that have been confirmed with Ctrl+Shift+Enter, then filled down.
Jayde1710 That's because VLOOKUP returns the first match. You lookup array shifts down one row for every cell in N. When the firs row of the lookup range is row 9 in Sheet2 (i.e. in cell N12 of Sheet1), the first match for 15021 is found on row 10 (941). Then, in N13, the first match is again on row 10. Thus, a repetition of the previous row.
- Riny_van_EekelenAug 13, 2022Platinum Contributor
Jayde1710 Can you share a file (OneDrive or similar) that more accurately reflects the data you are dealing with and include a sheet with the output you would like to get? Excel has great built-in tools that can rearrange, filter and tidy-up data. Which one will work best for you depends on the data and the Excel version you work with.
- Jayde1710Aug 15, 2022Copper ContributorI can't share the exact data file..but i attached a replicate file.. and I'm still working on 2007 so new Excel formulas not working
- Riny_van_EekelenAug 15, 2022Platinum Contributor
Jayde1710 Okay! that's an old Excel version. don't really remember what works there and what not.
Thanks for the file. I created a pivot table from the SALE table and used the "Show Report filter Pages..." button to display the listings for the individual grades, each in their own pivot table. Is that something you had in mind?