Try this and drag down and across
B2=IFERROR(MID(SUBSTITUTE(TRIM(IF(INDIRECT(ADDRESS (ROW(),1))<>"",$A$2,$B$1))," ","x"),IF(INDIRECT(ADDRESS(ROW(),1))<>"",COLUMN(A1 ),ROW(A1)),1),"")
Try this and drag down and across
B2=IFERROR(MID(SUBSTITUTE(TRIM(IF(INDIRECT(ADDRESS (ROW(),1))<>"",$A$2,$B$1))," ","x"),IF(INDIRECT(ADDRESS(ROW(),1))<>"",COLUMN(A1 ),ROW(A1)),1),"")
A dream is not something you see when you are asleep, but something you strive for when you are awake.
It's usually a bad idea to say that something can't be done.
The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve
Join us at Facebook
Hi
@ EF
If I replace A2 with "eboard Regular", the result seems incorrect.
another option
=IF(ROWS(B$2:B2)>1,SUBSTITUTE(MID($B$1,ROWS(B$2:B2 )-1,1)," ","x"),SUBSTITUTE(MID($A$2,COLUMNS($B2:B2),1), " ","x"))
Cheers !
Excel Range to BBCode Table
Use Social Networking Tools If You Like the Answers !
Message to Cross Posters
@ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)
Admin, could you indicate what's seeming incorrect? I thought that both the first characters of the two cells would be the same. That's why I've excluded that.
Also, the formula you suggested above leaves a trailing 'x' because there's a blank character in the end. A trim can be added
A dream is not something you see when you are asleep, but something you strive for when you are awake.
It's usually a bad idea to say that something can't be done.
The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve
Join us at Facebook
fair enough.
Thanks.Also, the formula you suggested above leaves a trailing 'x' because there's a blank character in the end. A trim can be added
if both the first characters are same, you can use this as well.
=IF(ROWS(B$2:B2)>1,SUBSTITUTE(MID(TRIM($B$1),ROWS( B$2:B2),1)," ","x"),SUBSTITUTE(MID(TRIM($A$2),COLUMNS($B2:B2),1 )," ","x"))
Last edited by Admin; 06-04-2013 at 03:59 PM.
Cheers !
Excel Range to BBCode Table
Use Social Networking Tools If You Like the Answers !
Message to Cross Posters
@ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)
thanks all of you
Excellent solutions
thanks all of you
Excellent solutions
Bookmarks