Occurances Formula

fari1

Active Member
Joined
May 29, 2011
Messages
362
<b>Sheet8</b><br /><br /><table border="1" cellspacing="0" cellpadding="0" style="font-family:Calibri,Arial; font-size:11pt; background-color:#ffffff; padding-left:2pt; padding-right:2pt; "> <colgroup><col style="font-weight:bold; width:30px; " /><col style="width:64px;" /><col style="width:64px;" /></colgroup><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td > </td><td >A</td><td >B</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >1</td><td >Andy</td><td style="text-align:right; ">1</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >2</td><td >Miree</td><td style="text-align:right; ">2</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >3</td><td >Alidf</td><td style="text-align:right; ">1</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >4</td><td >nimi</td><td style="text-align:right; ">3</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >5</td><td >lia</td><td style="text-align:right; ">1</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >6</td><td >teri</td><td style="text-align:right; ">2</td></tr></table> <br />Excel tables to the web - Excel Jeanie Html 4



hi, in my above example, i want to get all the values from column 1 against "1" from column 2 in column 3, which is

Andy
Alidf
lia

anyone can help with the formula? plz its urgent, thanking u in advance.
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
If Excel 2007 or beyond:

Code:
=IFERROR(INDEX(A$1:A$6,SMALL(IF(B$1:B$6=1,ROW(A$1:A$6)-ROW(A$1)+1),ROWS(C$1:C1))),"")
If 2003 or before:

Code:
=IF(ROWS(C$1:C1)<=COUNTIF(B$1:B$6,1),INDEX(A$1:A$6,SMALL(IF(B$1:B$6=1,ROW(A$1:A$6)-ROW(A$1)+1),ROWS(C$1:C1))),"")
Matty
 
Upvote 0
Hi Villy, cant use autofilter,
Matty i used your formula for excel 2007, but it is just giving one instance, not all the results
 
Upvote 0
Sorry, I should have pointed out that the formulas I provided need committing with CTRL+SHIFT+ENTER due to their array nature, and can then be copied down.

Matty
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,740
Members
452,940
Latest member
rootytrip

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