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

Excel - How to mix columns



 
 
Thread Tools Display Modes
  #1  
Old May 23rd, 2004, 03:23 AM
GML
external usenet poster
 
Posts: n/a
Default Excel - How to mix columns

I need to mix some columns like this:
Suppose A1:A3 = 1,2,3 and B1:B3 = a,b,c
How can I get C1:C6 = 1,a,2,b,3,c ?
Is it possible just with formulae (no macro) ?
Any help would be appreciated
TIA
GML


---
Message posted from http://www.ExcelForum.com/

  #2  
Old May 23rd, 2004, 03:36 AM
Paul B
external usenet poster
 
Posts: n/a
Default Excel - How to mix columns

try this in C1 =A1&","&A2

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2000 & 97
** remove news from my email address to reply by email **
"GML " wrote in message
...
I need to mix some columns like this:
Suppose A1:A3 = 1,2,3 and B1:B3 = a,b,c
How can I get C1:C6 = 1,a,2,b,3,c ?
Is it possible just with formulae (no macro) ?
Any help would be appreciated
TIA
GML


---
Message posted from http://www.ExcelForum.com/



  #3  
Old May 23rd, 2004, 04:03 PM
GML
external usenet poster
 
Posts: n/a
Default Excel - How to mix columns

Sorry. What I really need is:

Given Get
A B C
1 1 a 1
2 2 b a
3 3 c 2
4 b
5 3
6 c

TIA
GML


---
Message posted from http://www.ExcelForum.com/

  #4  
Old May 23rd, 2004, 04:16 PM
GML
external usenet poster
 
Posts: n/a
Default Excel - How to mix columns

Thank you, Paul
But, sorry, what I really need is: given columns A and B, get column C.
(Dots only for formatting)

. . Given . . Get
. . . A . B . . C
1 . 1 . a . . 1
2 . 2 . b . . a
3 . 3 . c . . 2
4 .. . . . .. . b
5 ... . . . . . 3
6 .. . . . .. . c

TIA
GML


---
Message posted from http://www.ExcelForum.com/

  #5  
Old May 23rd, 2004, 04:37 PM
Frank Kabel
external usenet poster
 
Posts: n/a
Default Excel - How to mix columns

Hi
enter the following in C1
=OFFSET($A$1,INT((ROW()-1)/2),MOD(ROW()-1,2))
and copy this down

--
Regards
Frank Kabel
Frankfurt, Germany


I need to mix some columns like this:
Suppose A1:A3 = 1,2,3 and B1:B3 = a,b,c
How can I get C1:C6 = 1,a,2,b,3,c ?
Is it possible just with formulae (no macro) ?
Any help would be appreciated
TIA
GML


---
Message posted from http://www.ExcelForum.com/

  #6  
Old May 23rd, 2004, 04:39 PM
Peo Sjoblom
external usenet poster
 
Posts: n/a
Default Excel - How to mix columns

That is pretty easy to do using a sorting trick
Put B after A

1
2
3
and so on
a
b
c
and do on


now in an adjacent column put

1
2
3

after the numbers are done and adjacent to the letters use

1.5
2.5
3.5
and so on

copy down as long as needed so the adjacent help column looks like

1
2
3
1.5
2.5
3.5

now select both columns and sort ascending on the help column


--


For everyone's benefit keep the discussion in the newsgroup.

Regards,

Peo Sjoblom

"GML " wrote in message
...
Thank you, Paul
But, sorry, what I really need is: given columns A and B, get column C.
(Dots only for formatting)

. Given . . Get
. . A . B . . C
1 . 1 . a . . 1
2 . 2 . b . . a
3 . 3 . c . . 2
4 .. . . . .. . b
5 ... . . . . . 3
6 .. . . . .. . c

TIA
GML


---
Message posted from http://www.ExcelForum.com/



  #7  
Old May 23rd, 2004, 04:48 PM
Andy Brown
external usenet poster
 
Posts: n/a
Default Excel - How to mix columns

You could try this formula in C1 & copy down.

=OFFSET($A$1,ROUNDDOWN((ROW()-1)/2,0),MOD(ROW()-1,2))

HTH,
Andy


 




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 11:56 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.