Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Help Pulling data from one column to another

Hello!

I hope I can explain this correctly. I have a column with unique
information (customer IDs) and then a column with the number of orders. I
want to create a formula to pull all customer ids into individual cells where
the orders equal 2.

For Instance

3121 1
3231 2
5121 3
5312 2
1321 3
5151 1


Results:
3231
5312

If for example 3121 makes another order and their number changes to 2, I
would like 3121 to be added to the results automatically.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Help Pulling data from one column to another

Try this array formula** :

ID = named range refers to customer ID's
Orders = named range refers to customer orders

Assume you enter the formula in cell D2.

=IF(ROWS(D$2:D2)<=COUNTIF(Orders,2),INDEX(ID,SMALL (IF(Orders=2,ROW(ID)-MIN(ROW(ID))+1),ROWS(D$2:D2))),"")

Copy to enough cells that is at least equal to number of 2s in the Oders
range.

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"Brent Sweet" wrote in message
...
Hello!

I hope I can explain this correctly. I have a column with unique
information (customer IDs) and then a column with the number of orders. I
want to create a formula to pull all customer ids into individual cells
where
the orders equal 2.

For Instance

3121 1
3231 2
5121 3
5312 2
1321 3
5151 1


Results:
3231
5312

If for example 3121 makes another order and their number changes to 2, I
would like 3121 to be added to the results automatically.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tying to extract all data from a pivot pulling from external data Ted Urban Excel Discussion (Misc queries) 3 September 14th 07 10:50 AM
Linking two spreadsheet, pulling data from one cell to another, data is being truncated Ben Excel Worksheet Functions 0 September 13th 07 11:41 PM
Pulling Row and Column labels from other cells. MTUSNOW Excel Discussion (Misc queries) 0 September 7th 05 11:26 PM
Formula for pulling column I ttl in column I for each "e" row that Cheryl B Excel Worksheet Functions 2 April 27th 05 11:28 PM
Excel formula needed to amounts into one column pulling from 2 col Scott Excel Worksheet Functions 1 March 3rd 05 06:42 PM


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

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

About Us

"It's about Microsoft Excel"