Irishswim07
New Member
- Joined
- May 1, 2008
- Messages
- 7
I've got an array in an row that I'd like to write a formula for in a separate cell to concatenate certain cells in that array. The array contains blank cells as well. For example:
Array row:
ts01 ts02 ts03 "blank" <blank>ts05 ts06 ts07 ts08
In this case I'd like the formula to look at this array and concatenate something like this:
ts01-ts03, ts05-tsh08
I've got a formula written right now...
=CONCATENATE(IFERROR(INDEX(Array,MATCH("*",Array,0)),""),"-",IFERROR(INDEX(Array,MATCH("*",Array,-1)),""))
but that only returns the first and last value "ts01-ts08" and doesn't look for the blank cell.
Is there a way to look for that blank cell and do one concatenate of those values, and then do another one after that blank cell?</blank>
Array row:
ts01 ts02 ts03 "blank" <blank>ts05 ts06 ts07 ts08
In this case I'd like the formula to look at this array and concatenate something like this:
ts01-ts03, ts05-tsh08
I've got a formula written right now...
=CONCATENATE(IFERROR(INDEX(Array,MATCH("*",Array,0)),""),"-",IFERROR(INDEX(Array,MATCH("*",Array,-1)),""))
but that only returns the first and last value "ts01-ts08" and doesn't look for the blank cell.
Is there a way to look for that blank cell and do one concatenate of those values, and then do another one after that blank cell?</blank>