A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

GRAB VALUES FROM COLUMN A WHERE COLUMN C = 302



 
 
Thread Tools Display Modes
  #1  
Old May 19th, 2009, 09:21 PM posted to microsoft.public.excel.misc
Gluefoot
external usenet poster
 
Posts: 16
Default GRAB VALUES FROM COLUMN A WHERE COLUMN C = 302

I need to lookup the values in sheet 1 column A where the corresponding value
in column c = "302" I don't want it to grab any values that are blank or not
equal to 302. can someone help? i'd like to list these in column A of sheet 2
  #2  
Old May 19th, 2009, 09:41 PM posted to microsoft.public.excel.misc
T. Valko
external usenet poster
 
Posts: 15,759
Default GRAB VALUES FROM COLUMN A WHERE COLUMN C = 302

One way...

Sheet2 A1 = formula to get the count of records that meet the condition:

=COUNTIF(Sheet1!C:C,302)

Enter this array formula** in Sheet2 A2 and copt down until you get blanks:

=IF(ROWS(A$2:A2)=A$1,INDEX(Sheet1!A$2:A$20,SMALL( IF(Sheet1!C$2:C$20=302,ROW(Sheet1!A$2:A$20)),ROWS( A$2:A2))-ROW(Sheet1!A$2)+1),"")

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"Gluefoot" wrote in message
...
I need to lookup the values in sheet 1 column A where the corresponding
value
in column c = "302" I don't want it to grab any values that are blank or
not
equal to 302. can someone help? i'd like to list these in column A of
sheet 2



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:15 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.