Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
pmarques
 
Posts: n/a
Default Copy cells in a determined order


I need a formula (or some other type of solution)
That Copys ocurrences from columm C to D when the number in A apears
(one or more times) in B.
The data copyed (from C to D) should be in the same line that the
number apears in A.
The example is more clear :) (the columm D is the result that i wont)

Note:I have tried something like (columm E)
=IF(COUNTIF($A$2:$A$13;B8)=1;C8;"")
but doesn't works, it gives the records that i wont but not in the
correct cells...

Thanks in advanced


+-------------------------------------------------------------------+
|Filename: Example 3.zip |
|Download: http://www.excelforum.com/attachment.php?postid=4324 |
+-------------------------------------------------------------------+

--
pmarques
------------------------------------------------------------------------
pmarques's Profile: http://www.excelforum.com/member.php...o&userid=25110
View this thread: http://www.excelforum.com/showthread...hreadid=508890

  #2   Report Post  
Posted to microsoft.public.excel.misc
flummi
 
Posts: n/a
Default Copy cells in a determined order

What I understand is:

You have something like this:

cool hot 1 4
wet 2
dry 3
cool 4
better 5
worse 6

A1="cool"
If "cool" appears in B1:B6 you want "4" in D1 (the line "cool" appears
in).

If that is correct, use this in D1:

=IF(ISNA(VLOOKUP(A1;$B$1:$C$6;2;FALSE));"";VLOOKUP (A1;$B$1:$C$6;2;FALSE))

  #3   Report Post  
Posted to microsoft.public.excel.misc
pmarques
 
Posts: n/a
Default Copy cells in a determined order


WHY IN THE EXAMPLE THAT I GIVE (ATTACHED) DOESN'T WORK IN CELL D13
SHOULD GIVE
D13 = DFJ (BECAUSE B9 = 8 AND C9 = DFJ) INSTEAD IS BLANK.
NOTE: I´M WORKING IN EXCEL 97
Thanks for your help





-------------------------------------------------------------------------

flummi Wrote:
What I understand is:

You have something like this:

cool hot 1 4
wet 2
dry 3
cool 4
better 5
worse 6

A1="cool"
If "cool" appears in B1:B6 you want "4" in D1 (the line "cool" appears
in).

If that is correct, use this in D1:

=IF(ISNA(VLOOKUP(A1;$B$1:$C$6;2;FALSE));"";VLOOKUP (A1;$B$1:$C$6;2;FALSE))



--
pmarques
------------------------------------------------------------------------
pmarques's Profile: http://www.excelforum.com/member.php...o&userid=25110
View this thread: http://www.excelforum.com/showthread...hreadid=508890

  #4   Report Post  
Posted to microsoft.public.excel.misc
pmarques
 
Posts: n/a
Default Copy cells in a determined order


Thanks flummi :)

That's it. For the example that i give (attached) the range should be

=IF(ISNA(VLOOKUP(A2;$B$1:$C$10;2;FALSE));"";VLOOKU P(A2;$B$1:$C$10;2;FALSE))

Thanks a lot :) :)


--
pmarques
------------------------------------------------------------------------
pmarques's Profile: http://www.excelforum.com/member.php...o&userid=25110
View this thread: http://www.excelforum.com/showthread...hreadid=508890

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
checking that cells have a value before the workbook will close kcdonaldson Excel Worksheet Functions 8 December 5th 05 04:57 PM
Order of selecting unprotected cells sp2 tester Excel Discussion (Misc queries) 2 August 15th 05 04:07 PM
How can i copy a group of cells in a row to a column? yargila Excel Discussion (Misc queries) 2 August 10th 05 03:58 AM
Copy Range of Cells in Same Row Moe Excel Discussion (Misc queries) 1 August 4th 05 06:47 PM
reminder notifications in a column L Mieth Excel Discussion (Misc queries) 6 June 10th 05 11:00 AM


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

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

About Us

"It's about Microsoft Excel"