#1   Report Post  
PJG
 
Posts: n/a
Default vlookup

I have a list of data with multiple values being the same in column A with
different lists of data in columns B, C, and D. I need to consolidate the
data in column A to one record or row and have the data in columns B, C, and
D move to single row. Any suggestions?
  #2   Report Post  
Gary Brown
 
Posts: n/a
Default

If they're all numbers, I would try a Pivot Table.
HTH,
Gary Brown

"PJG" wrote:

I have a list of data with multiple values being the same in column A with
different lists of data in columns B, C, and D. I need to consolidate the
data in column A to one record or row and have the data in columns B, C, and
D move to single row. Any suggestions?

  #3   Report Post  
Herbert Seidenberg
 
Posts: n/a
Default

1. Tools | Option | General | R1C1 reference style
2. Tools | Option | Calculation | Iteration on
3. Enter this formula into a cell
=IF(AND(RC1=R[1]C1,RC1=R[-1]C1),IF(R[-1]C=0,R[1]C,R[-1]C),
IF(RC1=R[1]C1,R[1]C,IF(RC1=R[-1]C1,R[-1]C,"")))
4. Edit | Copy this cell
5. Select data area
6. Edit | Goto | Special | Blanks | OK
7. Edit | Paste
8. Select data area
9. Edit | Copy
10. Edit | Paste Special | Value | OK

  #4   Report Post  
Frans van Zelm
 
Posts: n/a
Default

Hi Herbert,

I studied PJG's question. I understood it as:
- make from
a 1 2 3
b 4 5
a 6 7
c 8 9
- this
a 1 2 3 6 7
b 4 5
c 8 9
I could not think of a simple solution. Of cource, anything is possible in
VBA but
that was to much for me.
Then I read you approach. Could you give a (short) explanation? It looks
interesting
but why RC-notation, why iteration? Last but not least, does it work?

Kind regards, Franss

"Herbert Seidenberg" wrote in message
oups.com...
1. Tools | Option | General | R1C1 reference style
2. Tools | Option | Calculation | Iteration on
3. Enter this formula into a cell
=IF(AND(RC1=R[1]C1,RC1=R[-1]C1),IF(R[-1]C=0,R[1]C,R[-1]C),
IF(RC1=R[1]C1,R[1]C,IF(RC1=R[-1]C1,R[-1]C,"")))
4. Edit | Copy this cell
5. Select data area
6. Edit | Goto | Special | Blanks | OK
7. Edit | Paste
8. Select data area
9. Edit | Copy
10. Edit | Paste Special | Value | OK



  #5   Report Post  
Herbert Seidenberg
 
Posts: n/a
Default

Hi Frans
Like your array, I visualized an array with repeats in the first column
and random entries or blanks in assigned columns:
Who Tag_a Tag_b Tag_c Tag_d
Art aa
Art ab
Art ad
Bud ba
Bud bc
Bud bb
Cid cb
Cid cc cd
Dan dc
Dan db
Dan da dd

The result should be:
Who Tag_a Tag_b Tag_c Tag_d
Art aa ab ad
Bud ba bb bc
Cid cb cc cd
Dan da db dc dd

My approach was to fill all the blanks in a tag column belonging to the
same person with the data appearing somewhere in that tag column, and
then deleting duplicate rows.
The formula refers to column locations only one cell away, so iteration
is needed to fill the rest of the cells. Five iterations are needed in
this example. Think of it as automata calculations.
R1C1 notation maintains the wording of the formula independent of its
location and makes it more readable.
Solutions to erasing duplicate rows have been provided by gurus
previously.



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
#N/A error with VLOOKUP Michelle Tucker Excel Discussion (Misc queries) 4 December 14th 04 01:23 PM
Vlookup Doron Klein Excel Discussion (Misc queries) 2 December 5th 04 08:36 AM
Vlookup Question Jeff Excel Discussion (Misc queries) 2 December 2nd 04 02:40 PM
Need help with modifying VLookUp Tom Excel Discussion (Misc queries) 4 December 2nd 04 12:44 AM
Vlookup with VBA Jeff Excel Discussion (Misc queries) 8 December 1st 04 02:41 PM


All times are GMT +1. The time now is 03:54 AM.

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"