Index and Match Duplicates

matthewlouis

Active Member
Joined
Mar 28, 2014
Messages
374
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I am using Index and Match with the variable being a percentage. However, I have duplicate percentages that have different matches (rows). So it is only returning the first row's information.

How do I get the Index and Match formula to recognize the different data on different rows given the duplicate percentages.

=IF(D26<>"",INDEX('INDEX Bullish RR'!$A$1:$DL$1,MATCH(D26,'INDEX Bullish RR'!$A$2:$DL$2,0)),"") where D26 = 6.35% and returns one row of data -- then the next row is . . .

=IF(D26<>"",INDEX('INDEX Bullish RR'!$A$1:$DL$1,MATCH(D27,'INDEX Bullish RR'!$A$2:$DL$2,0)),"") where D27 ALSO = 6.35% but it still returns the data from the row above it and ignores this row's data.

Thanks in advance for your imput and ideas :)
 
Last edited:
Oh wow! Thanks Aladin, this ought to help me see better what to do. You're awesome, thanks so much!
 
Upvote 0

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Hey Aladin, hmmmm, having a problem with the formula (control+alt+delete) -- I have it in column A. It worked great with the 5.06% duplicate as I said in the prior post.

But when I copied it down, it did not pick up the 5.03% you see that was duplicated at the bottom. It's just blank (?) Is there an adjustment that needs to be made to contorl+alt+delete formula? It sure worked well on that first duplicate.

Intermediate SP High1/22/20182,808.122,872.877.72%1Hasn't Closed Over SPH
17Daily SP High3/13/20182,758.682,801.905.06%2Hasn't Closed Over SPH
34Intermediate SP High3/12/20182,741.472,801.905.06%2Hasn't Closed Over SPH
Daily SP High2/27/20182,744.222,789.154.58%1Hasn't Closed Over SPH
Intermediate Wide Price and High Volume1/29/20182,759.972,870.623.37%1Intermediate Wide Price and High Volume
Daily SP High3/21/20182,709.792,739.142.71%1Hasn't Closed Over SPH
Intermediate Wide Price and High Volume11/27/20172,598.872,657.74-0.34%1Intermediate Wide Price and High Volume
Intermediate Wide Price and High Volume2/26/20182,647.322,789.15-0.74%1Intermediate Wide Price and High Volume
Daily Wide Price and High Volume2/9/20182,532.692,638.67-1.06%1Daily Wide Price and High Volume
Daily Wide Price and High Volume2/6/20182,593.072,701.04-2.85%1Daily Wide Price and High Volume
Daily Wide Price and High Volume2/8/20182,580.562,685.27-3.35%1Daily Wide Price and High Volume
Intermediate SP Low11/13/20172,557.452,590.09-4.11%1Hasn't Closed Under SPL
Daily SP Low4/2/20182,553.802,638.30-4.24%1Hasn't Closed Under SPL
Daily SP Low2/9/20182,532.692,638.67-5.03%2Hasn't Closed Under SPL
Daily SP Low2/9/20182,532.692,638.67-5.03%2Hasn't Closed Under SPL
Intermediate Wide Price and High Volume2/5/20182,532.692,763.39-5.30%1Intermediate Wide Price and High Volume

<tbody>
</tbody>
 
Last edited:
Upvote 0
By same output, I am assuming you mean are they both accessing the same source data table (?) Yes, they are both indexing the same column in the source data table for the percentage (-5.06% and -5.03%) and then matching the row data. The -5.06% worked great as your formula returned (using column g) all the row data correctly for the two occurrences of -5.06%. It found Line 17 and Line 34 in my source table and applied the row data per those row numbers.

However, when I copied the control+shift+enter formula in Column A down . . . it didn't work for the -5.03% duplication as you can see.
 
Last edited:
Upvote 0
Is this the output you want?

Row\Col
A​
B​
C​
D​
E​
F​
G​
3​
Daily SP High
3/13/2018
2,758.68
2,801.90
5.06%
2
Hasn't Closed Over SPH
4​
Intermediate SP High
3/12/2018
2,741.47
2,801.90
5.06%
2
Hasn't Closed Over SPH
5​
Daily SP Low
2/9/2018
2,532.69
2,638.67
-5.03%
2
Hasn't Closed Under SPL
6​
Daily SP Low
2/9/2018
2,532.69
2,638.67
-5.03%
2
Hasn't Closed Under SPL
 
Upvote 0
Yes, but the -5.03% has different row information as it is a duplicate . .. but yes, that is the table layout with Column A being the Row # of where the -5.03% is located in the source table.
 
Last edited:
Upvote 0
This is what it should look like -- BUT -- I had to manipulate the Column A formula to get it to work -- I couldn't just copy it down from Cell A2

Intermediate SP High1/22/20182,808.122,872.877.47%1Hasn't Closed Over SPH
17Daily SP High3/13/20182,758.682,801.904.82%2Hasn't Closed Over SPH
34Intermediate SP High3/12/20182,741.472,801.904.82%2Hasn't Closed Over SPH
Daily SP High2/27/20182,744.222,789.154.34%1Hasn't Closed Over SPH
Intermediate Wide Price and High Volume1/29/20182,759.972,870.623.15%10Intermediate Wide Price and High Volume
Daily SP High3/21/20182,709.792,739.142.47%1Hasn't Closed Over SPH
Daily SP High4/18/20182,703.632,717.491.66%1Hasn't Closed Over SPH
Intermediate Wide Price and High Volume11/27/20172,598.872,657.74-0.57%10Intermediate Wide Price and High Volume
Intermediate Wide Price and High Volume2/26/20182,647.322,789.15-0.97%10Intermediate Wide Price and High Volume
Daily Wide Price and High Volume2/9/20182,532.692,638.67-1.29%10Daily Wide Price and High Volume
Daily Wide Price and High Volume2/6/20182,593.072,701.04-3.09%10Daily Wide Price and High Volume
Daily Wide Price and High Volume2/8/20182,580.562,685.27-3.59%10Daily Wide Price and High Volume
Intermediate SP Low11/13/20172,557.452,590.09-4.33%1Hasn't Closed Under SPL
Daily SP Low4/2/20182,553.802,638.30-4.46%1Hasn't Closed Under SPL
28Daily SP Low2/9/20182,532.692,638.67-5.25%2Hasn't Closed Under SPL
36Intermediate SP Low2/5/20182,532.692,763.39-5.25%2Hasn't Closed Under SPL

<tbody>
</tbody>
 
Last edited:
Upvote 0
I'm asking for the output and getting back it seems the hole input.

Please try to put your question in terms of input and output. You shout say this is the input and post the input. And then say this is the output I want from that input and post that output.
 
Upvote 0
OK, I think I understand now.

Using the table last posted above, the INPUT is the percentage in Column F (that's what the formula is using to search the output for). The output I want is Columns B, C, D, E and I (last column). Again, I used your formula above and it worked on the first duplicate perfectly and filled in Columns B, C, D, E, and I -- but when I copied it down in Column A, it returned blanks in Column A, thus not creating any output in Columns, B, C, D, E, and I.

Thanks for your patience with me on this. I hope I got the input and putput right now.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,391
Messages
6,124,678
Members
449,179
Latest member
fcarfagna

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