VLOOKUP or INDEX/MATCH Help (Possible VBA)

rigeljr

New Member
Joined
Jul 5, 2021
Messages
17
Office Version
  1. 365
Platform
  1. Windows
Hi,

I'm looking for a solution to the problem I am having right now. Below are two entries from one tab of my spreadsheet. The unique identifier for this spreadsheet are the SP-SG-###### numbers.

1626296737506.png


I want to be able to VLOOKUP or Index/Match so that the unique identifiers from the sheet above, get added to the highlighted section on another sheet. As you can see, the 1014 is not unique because the top data has a letter attached, where the bottom does not. Additionally, since the dates are the same, combining doing a DATE&1014 is not a solution either. The Ab/Yar is not a factor in the above data so that can't be used.

Problem: My formula right now would pull SP-SG-13990 from the above table for both Ab and Yar in the below table. Is there a way to find the next unused result instead of just finding the first result?

1626296955167.png


Thank you!
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
You could use the following formula in E8 and copy it down


=INDEX(FILTER($E$2:$E$5,($A$2:$A$5=A8)*((LEFT($D$2:$D$5,4)*1)=D8)),COUNTIFS($A$8:A8,A8,$D$8:D8,D8))

1626307543031.png


Kind regards

Saba
 
Upvote 0
Solution

Forum statistics

Threads
1,214,832
Messages
6,121,850
Members
449,051
Latest member
excelquestion515

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