A Index match match or Lookup with certain criteria

Naicker

New Member
Joined
May 23, 2016
Messages
5
Hello,

I have a program which spits out data formatted like the table shown below (the real table is hundreds of lines long).
GetFileAttachment


I want to find the frequency of certain headings such as "Pears a", however I am having trouble as the 2 variables 'pears' and 'a' are in the same column.
And to make it more difficult, variables such as 'a' are repeated in the table.

Any Ideas?
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
"like the table shown below" .... nothing is shown
 
Upvote 0
"like the table shown below" .... nothing is shown

There is a picture, but maybe it didn't load properly. ill try again, please see below:

[TABLE="class: grid, width: 200"]
<tbody>[TR]
[TD]Apples[/TD]
[TD]Frequency[/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]b[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]c[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Oranges[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]b[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]c[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]Pears[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]6[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
What's up if exists several Pears a ??
 
Upvote 0
Assuming D4 = Oranges and E4 = a
H4=INDEX($B$1:$B$1000,MATCH(D4,A$1:A$1000,0)+MATCH(E4,OFFSET($A$1,MATCH(D4,A$1:A$1000,0),0,10000,1),0),1)
 
Upvote 0
and if D4 = Oranges and D5 = a
no D4 is for fruit selection and E4 is for a, b, c etc...!
assuming data in column A and B
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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