Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 390
Default Combining duplications and data

Using Excel 2007

I have information in columns A, B and C as shown below:

A B C

Bob 5
Steve 4
Bob X
John 7
John Y
Ron 8


I would like to combine similar entries in column A into one entry (one
line) in column A and with the corresponding values in columns B and C on one
line as shown below:

A B C

Bob 5 X
Steve 4
John 7 Y
Ron 8

I would like to do this in the simplest way possible and without using a
macro.

Any suggestions are appreciated.

Thank you,

Bill

  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Combining duplications and data

Here's one pure formulas play to drive the entire results set out ..
Assume your source data as posted in A2:C2 down till say, row 100
In D2:
=IF(A2="","",IF(COUNTIF(A$2:A2,A2)1,"",ROW()))
In E2:
=IF(ROWS($1:1)COUNT(D:D),"",INDEX(A:A,SMALL(D:D,R OWS($1:1))))
In F2, normal ENTER to confirm will do:
=IF(ISNA(MATCH(1,INDEX(($A$2:$A$100=$E2)*(B$2:B$10 0<""),),0)),"",INDEX(B$2:B$100,MATCH(1,INDEX(($A$ 2:$A$100=$E2)*(B$2:B$100<""),),0)))
Copy F2 to G2. Select D2:G2, copy down to G100. Minimize/hide col D. Cols E
to G would return the desired results. voila? eternalize it, hit the YES
below
--
Max
Singapore
---
"Bill" wrote:
Using Excel 2007

I have information in columns A, B and C as shown below:

A B C

Bob 5
Steve 4
Bob X
John 7
John Y
Ron 8


I would like to combine similar entries in column A into one entry (one
line) in column A and with the corresponding values in columns B and C on one
line as shown below:

A B C

Bob 5 X
Steve 4
John 7 Y
Ron 8

I would like to do this in the simplest way possible and without using a
macro.

Any suggestions are appreciated.

Thank you,

Bill

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 390
Default Combining duplications and data

Max:

This worked.

Thank you.

Bill


"Max" wrote:

Here's one pure formulas play to drive the entire results set out ..
Assume your source data as posted in A2:C2 down till say, row 100
In D2:
=IF(A2="","",IF(COUNTIF(A$2:A2,A2)1,"",ROW()))
In E2:
=IF(ROWS($1:1)COUNT(D:D),"",INDEX(A:A,SMALL(D:D,R OWS($1:1))))
In F2, normal ENTER to confirm will do:
=IF(ISNA(MATCH(1,INDEX(($A$2:$A$100=$E2)*(B$2:B$10 0<""),),0)),"",INDEX(B$2:B$100,MATCH(1,INDEX(($A$ 2:$A$100=$E2)*(B$2:B$100<""),),0)))
Copy F2 to G2. Select D2:G2, copy down to G100. Minimize/hide col D. Cols E
to G would return the desired results. voila? eternalize it, hit the YES
below
--
Max
Singapore
---
"Bill" wrote:
Using Excel 2007

I have information in columns A, B and C as shown below:

A B C

Bob 5
Steve 4
Bob X
John 7
John Y
Ron 8


I would like to combine similar entries in column A into one entry (one
line) in column A and with the corresponding values in columns B and C on one
line as shown below:

A B C

Bob 5 X
Steve 4
John 7 Y
Ron 8

I would like to do this in the simplest way possible and without using a
macro.

Any suggestions are appreciated.

Thank you,

Bill

  #4   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Combining duplications and data

welcome, delighted that it worked for you
--
Max
Singapore
"Bill" wrote in message
...
Max:
This worked
Thank you
Bill



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 390
Default Combining duplications and data

Max:

I have one additonal aspect of that issue that I did not convey in the
original e-mail. It is a little difficult to show here because of limited
formating capability. If you are interested, I can send you a very short file
that would better capture what I am trying to accomplish. I would need your
e-mail. Mine is .

Thanks for the help Max.

Bill

"Max" wrote:

welcome, delighted that it worked for you
--
Max
Singapore
"Bill" wrote in message
...
Max:
This worked
Thank you
Bill



.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 390
Default Combining duplications and data


Max:

On second thought, I might try and convey the issue in the example below.

Column A has colors
Column B has names
Column C has numbers
Column D also has numbers

A B C D

Red Jack 7
Red Jack 3
Blue Bill 1
Orange Bob 5
Red Steve 3
Blue Bill 7
Black Ron 8
Blue Ed 7
Orange Jack 4
Orange Jack 9

I would like to achieve the following combining the information (columns A,
C and D) for the same names in column B into a one line entry. I want to
also keep colors in column A; names in column B; numbers in column C; and
numbers in column D.

A B C D

Red Jack 7 3
Blue Bill 7 1
Orange Bob 5
Red Steve 3
Black Ron 8
Blue Ed 7
Orange Jack 4 9


Can this be done?

Thanks

Bill





"Bill" wrote:

Max:

I have one additonal aspect of that issue that I did not convey in the
original e-mail. It is a little difficult to show here because of limited
formating capability. If you are interested, I can send you a very short file
that would better capture what I am trying to accomplish. I would need your
e-mail. Mine is .

Thanks for the help Max.

Bill

"Max" wrote:

welcome, delighted that it worked for you
--
Max
Singapore
"Bill" wrote in message
...
Max:
This worked
Thank you
Bill



.

  #7   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Combining duplications and data

This extension of the earlier will consider cols A & B together for
uniqueness purposes

With your source data in A2:D2 down to row 100
In E2:
=IF(OR(A2="",B2=""),"",IF(SUMPRODUCT((A$2:A2=A2)*( B$2:B2=B2))1,"",ROW()))

In F2:
=IF(ROWS($1:1)COUNT($E:$E),"",INDEX(A:A,SMALL($E: $E,ROWS($1:1))))
Copy to G2

In H2:
=IF(ISNA(MATCH(1,INDEX(($A$2:$A$100=$F2)*($B$2:$B$ 100=$G2)*(C$2:C$100<""),),0)),"",INDEX(C$2:C$100, MATCH(1,INDEX(($A$2:$A$100=$F2)*($B$2:$B$100=$G2)* (C$2:C$100<""),),0)))
Copy to I2. Select E2:I2, copy down to I100. Success? celebrate it, hit Yes
below
--
Max
Singapore
---
"Bill" wrote:
Max:
On second thought, I might try and convey the issue in the example below.

Column A has colors
Column B has names
Column C has numbers
Column D also has numbers

A B C D

Red Jack 7
Red Jack 3
Blue Bill 1
Orange Bob 5
Red Steve 3
Blue Bill 7
Black Ron 8
Blue Ed 7
Orange Jack 4
Orange Jack 9

I would like to achieve the following combining the information (columns A,
C and D) for the same names in column B into a one line entry. I want to
also keep colors in column A; names in column B; numbers in column C; and
numbers in column D.

A B C D

Red Jack 7 3
Blue Bill 7 1
Orange Bob 5
Red Steve 3
Black Ron 8
Blue Ed 7
Orange Jack 4 9


  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 390
Default Combining duplications and data


Max:

It worked.

Thanks again.

Bill

"Max" wrote:

This extension of the earlier will consider cols A & B together for
uniqueness purposes

With your source data in A2:D2 down to row 100
In E2:
=IF(OR(A2="",B2=""),"",IF(SUMPRODUCT((A$2:A2=A2)*( B$2:B2=B2))1,"",ROW()))

In F2:
=IF(ROWS($1:1)COUNT($E:$E),"",INDEX(A:A,SMALL($E: $E,ROWS($1:1))))
Copy to G2

In H2:
=IF(ISNA(MATCH(1,INDEX(($A$2:$A$100=$F2)*($B$2:$B$ 100=$G2)*(C$2:C$100<""),),0)),"",INDEX(C$2:C$100, MATCH(1,INDEX(($A$2:$A$100=$F2)*($B$2:$B$100=$G2)* (C$2:C$100<""),),0)))
Copy to I2. Select E2:I2, copy down to I100. Success? celebrate it, hit Yes
below
--
Max
Singapore
---
"Bill" wrote:
Max:
On second thought, I might try and convey the issue in the example below.

Column A has colors
Column B has names
Column C has numbers
Column D also has numbers

A B C D

Red Jack 7
Red Jack 3
Blue Bill 1
Orange Bob 5
Red Steve 3
Blue Bill 7
Black Ron 8
Blue Ed 7
Orange Jack 4
Orange Jack 9

I would like to achieve the following combining the information (columns A,
C and D) for the same names in column B into a one line entry. I want to
also keep colors in column A; names in column B; numbers in column C; and
numbers in column D.

A B C D

Red Jack 7 3
Blue Bill 7 1
Orange Bob 5
Red Steve 3
Black Ron 8
Blue Ed 7
Orange Jack 4 9


  #9   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Combining duplications and data

welcome, Bill
--
Max
Singapore

"Bill" wrote in message
...

Max:
It worked.
Thanks again
Bill



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
How can I avoid duplications entering data in Excel? JCHSAlgebraTeacher Setting up and Configuration of Excel 3 January 5th 21 07:11 AM
Deleting Duplications Ray_V Excel Discussion (Misc queries) 3 August 10th 06 09:45 PM
Checking for data duplications Nikki Excel Discussion (Misc queries) 1 March 2nd 06 04:07 PM
remove duplications Vass Excel Discussion (Misc queries) 1 July 28th 05 04:32 PM
How do I check for duplications in a range of data (excel)? -Adrianna_ Excel Worksheet Functions 2 November 24th 04 10:25 AM


All times are GMT +1. The time now is 03:26 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"