find data in a row based on column value

ajith

Board Regular
Joined
Nov 21, 2012
Messages
215
Office Version
  1. 2016
Platform
  1. Windows
DEFGHIJKL
11nameagecomplaintresponsedaysdrugsymprepeatR.resp
12Shyam33paingood2assygood
13Sunil24fevergood5xaanbad
14Aji46colicgood6fssybad
15Tom34feverbad2gddybad
16Mathew23fevergood4cabngood
17Sucy17painbad6assnbad

<tbody>
</tbody>
sir,
Please suggest an excel formula to extract the data in the entire row of those which have "fever" in column F. ie we should paste the data in row no. 13, 15 and 16 in another table in Sheet2 having the same headings. Thank you
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Hi ,

Please try to apply advance filter on data like
kkzAyk


https://ibb.co/kkzAyk

kkzAyk
kkzAyk
 
Upvote 0
Sheet2 (the processing sheet)

A1: fever

In A2 just enter:

=COUNTIFS(Sheet1!F12:F17,A1)

A3: Idx, B3:J3 replicates the headers in D11:L11 of Sheet1.

In A4 control+shift+enter, not just enter, and copy down:

=IF(ROWS($A$4:A4)>$A$3,"",SMALL(IF(Sheet1!$F$12:$F$17=$A$1,ROW(Sheet1!$F$12:$F$17)-ROW(Sheet1!$F$12)+1),ROWS($A$4:A4)))

In B4 just enter, copy across, and down:

=IF$A4="","",INDEX(Sheet1!$A$12:$L$17,$A4,MATCH(B$3,Sheet1!$A$11:$L$11,0)))
 
Upvote 0
Thanks Aladin. But what is A3: Idx
I did as what you have given but none of the cells are showing any value. All are empty except A2 where it is 3.
 
Last edited:
Upvote 0
Thanks Aladin. But what is A3: Idx
I did as what you have given but none of the cells are showing any value. All are empty except A2 where it is 3.

A3 houses the label Idx; B3:J3 houses copies of the headers in D11:L11 of Sheet1.

The formula that goes in A4 must be confirmed with control+shift+enter (not just with enter) and copied down:

=IF(ROWS($A$4:A4)>$A$2,"",SMALL(IF(Sheet1!$F$12:$F$17=$A$1,ROW(Sheet1!$F$12:$F$17)-ROW(Sheet1!$F$12)+1),ROWS($A$4:A4)))

The formula that goes in B4 must be confirmed with just enter, copied across, and down:

=IF$A4="","",INDEX(Sheet1!$A$12:$L$17,$A4,MATCH(B$3,Sheet1!$A$11:$L$11,0)))

 
Upvote 0
Sir,
I changed it to $A$2. Now I am getting 3 in A4 and from B3 to J3 #N/A. All cells in the table are empty.
 
Upvote 0
Sir,
I changed it to $A$2. Now I am getting 3 in A4 and from B3 to J3 #N/A. All cells in the table are empty.

Did you also edit the IF bit of the B4 formula?...

=IF($A4="","",INDEX(Sheet1!$A$12:$L$17,$A4,MATCH(B$3,Sheet1!$A$11:$L$11,0)))

 
Upvote 0
Yes I did it

Control+shift+enter means: Press down the shift and the control keys at the same time while you hit the enter key. If done successfully, Excel itself puts a pair of { and } around the formula in recognition.

As you know, the formula in A4 must be confirmed control+shift+enter, then copied down.
 
Upvote 0
Thank you sir,
I got it. I made a mistake in row number. Ok It is perfect. Thank you
 
Upvote 0

Forum statistics

Threads
1,214,957
Messages
6,122,466
Members
449,086
Latest member
kwindels

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