Lookup up data in a certain column and provide whole row.

rossmolden

New Member
Joined
Feb 10, 2010
Messages
3
Hi All

I need to find a formula which looks up value "4" in column C and displays the whole row, then for the next row down it does the same for the next time "4" is displayed in that column.

Original Data:

ABCD
row 2 datarow 2 data2row 2 data
row 3 datarow 3 data4row 3 data
row 4 datarow 4 data6row 4 data
row 5 datarow 5 data4row 5 data
row 6 datarow 6 data3row 6 data

<colgroup><col span="2"><col><col></colgroup><tbody>
</tbody>


Formulated Data:

ABCD
row 3 datarow 3 data4row 3 data
row 5 datarow 5 data4row 5 data

<colgroup><col width="64" span="4" style="width:48pt"> </colgroup><tbody>
</tbody>
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
Sheet1, A:D, houses the sample data.

Sheet2, A:E, houses the processing...

A1: 4

A2: Idx, B2:E2 houses the headers A1:D1 of Sheet1.

A3, control+shift+enter, not just enter, and copy down:
Rich (BB code):
=IFERROR(SMALL(IF(Sheet1!$C$2:$C$6=$A$1,
  ROW(Sheet1!$C$2:$C$6)-ROW(Sheet1!$C$2)+1),ROWS($A$3:A3)),"")

B3, just enter, copy across as far as needed, then copy down:
Rich (BB code):
=IF($A3="","",INDEX(Sheet1!A$2:A$5,$A3))
 

rossmolden

New Member
Joined
Feb 10, 2010
Messages
3
Sorry, this doesn't make sense to me. I am not very experienced with excel, any chance you could provide an excel template file, or layout exactly what I need to enter into each cell?
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,160
Messages
5,835,725
Members
430,383
Latest member
Kastore

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
Top