Find second occurrence same value in Row

SeliM

Board Regular
Joined
Aug 10, 2023
Messages
62
Office Version
  1. 365
Platform
  1. Windows
Good morning,

Thanks for taking time to read my enquiry.

I am assisting an organisation who uses a proprietary software to assess tenders.

I am using 365 to draw required data from an excel export from the proprietary system.

The number of rows and columns vary depending on how many submissions are received.

There are two sets of data side by side (at locations depending on number of submissions which can vary from few (4-5) to many (20-60), the sequence of submitters names on both sets of data is the same - (a,b,c,d - a,b,c,d etc.) on the same row

I can find the first occurrence for "a" and retrieve data however I struggle to find the second occurrence for "a" on the same row. I've tried xlookup without success and wondered if you could assist pls.

Many thanks in advance

Mel
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
It's hard to tell exactly what your data looks like, but I'd guess it's something like this:

Book1
ABCDEFGHIJKLMN
1NameNameNameNameNameNameNameNameNameNameNameNameName
2abcdabcd
31591317212529
426101418222630
537111519232731
648121620242831
7
8
9
10
11NameInstanceRows downResult
12a2319
Sheet7
Cell Formulas
RangeFormula
D12D12=INDEX($3:$6,C12,SMALL(FILTER(COLUMN(B2:P2),B2:P2=A12),B12))


The formula in D12 should give you what you're looking for, or at least be a good starting point.
 
Upvote 0
So your data looks something like this?
Book1
ABCDEFGHIJKLMNOP
1NameAgeHeightWeightNameAgeHeightWeightNameAgeHeightWeightNameAgeHeightWeight
2Jimmy256'7"175Jane255'5"130Joey406'0"155Mike205'9"200
INPUT
 
Upvote 0
Apologies for not being able to upload SS - have never been able to get the addin to work.

The data structure looks like this:
Can be many columns wide
IDActual Moderated ScoreActual Moderated Weight
Instructions - Group Weight - 0%Mickey MouseDonald DuckGoofy Pty LtdRoad RunnerUncle SamMickey MouseDonald DuckGoofy Pty LtdRoad RunnerUncle Sam
3.1​
8.33​
8​
7​
7​
7​
12.49%​
12.00%​
10.50%​
10.50%​
10.50%​
4.1​
8​
8.67​
6.33​
6.67​
6.33​
12.00%​
13.00%​
9.49%​
10.00%​
9.49%​
4.2​
8.33​
8.33​
6.33​
7.33​
7.33​
16.66%​
16.66%​
12.66%​
14.66%​
14.66%​
4.3​
9​
8.33​
7​
6.33​
7​
18.00%​
16.66%​
14.00%​
12.66%​
14.00%​

Objective: To find second Mickey Mouse to retrieve 12.49%, I can't use Index due to worksheet structure which varies according to number of submissions and criteria set.
Row number varies due to number of submissions and whether tender or quotation.
I have been using Match and Offset to find the values of raw data (e.g. 8, 8.67 etc.) however I cannot work out a formula that finds second Mickey Mouse entry to populate a second percentage score table (12.49% etc.).

Hope this explanation of challenge is set out better.
Many thanks.

Mel
 
Upvote 0
This is exactly the layout as I used in post 2, and the formula should work fine.

Book2
ABCDEFGHIJKLM
1IDActual Moderated ScoreActual Moderated Weight
2Instructions - Group Weight - 0%Mickey MouseDonald DuckGoofy Pty LtdRoad RunnerUncle SamMickey MouseDonald DuckGoofy Pty LtdRoad RunnerUncle Sam
33.18.33877712.49%12.00%10.50%10.50%10.50%
44.188.676.336.676.3312.00%13.00%9.49%10.00%9.49%
54.28.338.336.337.337.3316.66%16.66%12.66%14.66%14.66%
64.398.3376.33718.00%16.66%14.00%12.66%14.00%
7
8
9
10
11NameInstanceRows downResult
12Mickey Mouse2112.49%
Sheet2
Cell Formulas
RangeFormula
D12D12=INDEX($3:$6,C12,SMALL(FILTER(COLUMN(B2:Q2),B2:Q2=A12),B12))
 
Upvote 0
Solution

Forum statistics

Threads
1,224,812
Messages
6,181,083
Members
453,021
Latest member
Justyna P

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