distribute/concatenate values from 4 columns ..
e.g. from attachment
ef.xlsx
distribute/concatenate values from 4 columns ..
e.g. from attachment
ef.xlsx
I think people forget the word "THANK YOU!!!!" Do you still know it???
There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "
Regards,
Vladimir
seems to be no logic to that ,where does hr come from?
"Unless otherwise stated all my comments are directed at OP"
Mojito connoisseur and now happily retired
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
Not sure where HR comes from in G13 onwards - should it be FH ?
Not sure where the 11 in G18 comes from - should that be 12 (from D3), and other numbers follow ?
Why does HR (FH ?) carry on in G18 and not reset back to XY?
Where does 12 in the middle of G18 come from - should that be 22 (from B4) ?
Pete
ahh yes my mistake..Thanks both.
here's a better sample .
ef.xlsx
AA 22 XY 12 <- should be 22
In the attached I have kept the individual columns (K to N) as well the concatenated result (column I), though you don't need both.
I've also kept it fairly generic, so you can have any number of entries in cells A3:D10 and it will respond to them (though you might need to copy the formulae down further). Here's the monster formula that produces the concatenated result:
=INDEX(A$3:A$10,MOD(INT((ROWS($1:1)-1)/COUNTA(D$3:D$10)/COUNTA(C$3:C$10)/COUNTA(B$3:B$10)),COUNTA(A$3:A$10))+1)&" "&INDEX(B$3:B$10,MOD(INT((ROWS($1:1)-1)/COUNTA(D$3:D$10)/COUNTA(C$3:C$10)),COUNTA(B$3:B$10))+1)&" "&INDEX(C$3:C$10,MOD(INT((ROWS($1:1)-1)/COUNTA(D$3:D$10)),COUNTA(C$3:C$10))+1)&" "&INDEX(D$3:D$10,MOD(ROWS($1:1)-1,COUNTA(D$3:D$10))+1)
Hope this helps.
Pete
Thanks working perfectly.
Can't think solutions for this very dizzy today.
Problem in EF. slowing down on me.
Thanks again.
Regards,
Vladimir
You're welcome - glad to help.
If you don't need the flexibility built in, you can change those COUNTA functions to the actual number of cells used in each column and shorten the formula considerably.
Pete
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks