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 » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Source and Destination



 
 
Thread Tools Display Modes
  #1  
Old June 2nd, 2010, 09:03 PM posted to microsoft.public.excel.worksheet.functions
malcolm
external usenet poster
 
Posts: 106
Default Source and Destination

Hi, all,
I would like a formula to do the following;
SOURCE DESTINATION
101 102
102 C 105
102 108
104
105 S
106
107
108 S

The source column A numbers run consecutively from 101-216. I just want any
column B source cell that has a “C” or “S” to have it’s 3 digit number appear
in destination column A. What formula do I use?
Thanks,
Malcolm



  #2  
Old June 2nd, 2010, 09:20 PM posted to microsoft.public.excel.worksheet.functions
Max
external usenet poster
 
Posts: 8,574
Default Source and Destination

Assume source data running in A2 down,
and in B2 down you will mark it as: C, S, etc
In say, E2: =IF(OR(B2={"C","S"}),ROW(),"")
In F2: =IF(ROWS($1:1)COUNT(E:E),"",INDEX(A:A,SMALL(E:E,R OWS($1:1))))
Copy E2:F2 down to cover the max expected extent of source data, say to
F100. Hide/minimize col E. Col F returns the desired results, all neatly
packed at the top. voila? hit the YES below
--
Max
Singapore
---
"Malcolm" wrote:
I would like a formula to do the following;
SOURCE DESTINATION
101 102
102 C 105
102 108
104
105 S
106
107
108 S

The source column A numbers run consecutively from 101-216. I just want any
column B source cell that has a “C” or “S” to have it’s 3 digit number appear
in destination column A. What formula do I use?


 




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 01:23 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.