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  

Formula that selects value from list in sequence order



 
 
Thread Tools Display Modes
  #1  
Old May 19th, 2009, 04:21 PM posted to microsoft.public.excel.misc
Scott
external usenet poster
 
Posts: 1,119
Default Formula that selects value from list in sequence order

I have a series of text data entries in P5:P149.
I also have data in some of the cells in Column I.

In Column K, I want to select the data from Column P in sequential order, IF
there is data in Column I. If there is not data in Column I, I want it to
advance to the next time data appears in Column I, without skipping the
selection order of Column P.

Hope that makes sense? Thanks!
  #2  
Old May 19th, 2009, 05:20 PM posted to microsoft.public.excel.misc
T. Valko
external usenet poster
 
Posts: 15,759
Default Formula that selects value from list in sequence order

Try this...

K4 = formula to count how many records meet the condition:

=COUNTA(I5:I149)

Enter this array formula** in K5 and copy down until you get blanks:

=IF(ROWS(K$5:K5)=K$4,INDEX(P$5:P$149,SMALL(IF(I$5 :I$149"",ROW(P$5:P$149)),ROWS(K$5:K5))-ROW(P$5)+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


"Scott" wrote in message
...
I have a series of text data entries in P5:P149.
I also have data in some of the cells in Column I.

In Column K, I want to select the data from Column P in sequential order,
IF
there is data in Column I. If there is not data in Column I, I want it to
advance to the next time data appears in Column I, without skipping the
selection order of Column P.

Hope that makes sense? Thanks!



  #3  
Old May 19th, 2009, 08:32 PM posted to microsoft.public.excel.misc
RagDyeR
external usenet poster
 
Posts: 3,482
Default Formula that selects value from list in sequence order

If I understand your question, enter this in K5 and copy down as needed:

=IF(I5="","",INDEX(P$5:P$145,COUNTA($I$5:I5)))
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"Scott" wrote in message
...
I have a series of text data entries in P5:P149.
I also have data in some of the cells in Column I.

In Column K, I want to select the data from Column P in sequential order,
IF
there is data in Column I. If there is not data in Column I, I want it to
advance to the next time data appears in Column I, without skipping the
selection order of Column P.

Hope that makes sense? Thanks!



 




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 05:45 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.