PilgrimToHyperion
Expert Member
- Joined
- Jul 4, 2009
- Messages
- 1,105
- Reaction score
- 71
I've got a list that is supposed to show how long cetain cities' networks were unavailable.
The only format we can get the data in the following:
Column A
JHB
UNAVAILABLE 5MIN
UNAVAILABLE 7MIN
PTA
UNAVAILABLE 9MIN
DBN
UNAVAILABLE 5MIN
BLOEM
UNAVAILABLE 10MIN
UNAVAILABLE 1HOUR
In the example JHB was unavailable twice, PTA once, DBN once and then Bloem twice. Unfortunately the unavailability is indicated in the rows underneath the city name without the city name in the same row.
What I need is a formula (probably some and(if(or sort of thing) that will, in a new column, add the relevant city name next to the unavailability data so I can import it to SQL and do some reports.
Eg. I want the resultset to look something like this:
Column A Column B
JHB
UNAVAILABLE 5MIN JHB
UNAVAILABLE 7MIN JHB
PTA
UNAVAILABLE 9MIN PTA
DBN
UNAVAILABLE 5MIN DBN
BLOEM
UNAVAILABLE 10MIN BLOEM
UNAVAILABLE 1HOUR BLOEM
I'll appreciate any advice.
The only format we can get the data in the following:
Column A
JHB
UNAVAILABLE 5MIN
UNAVAILABLE 7MIN
PTA
UNAVAILABLE 9MIN
DBN
UNAVAILABLE 5MIN
BLOEM
UNAVAILABLE 10MIN
UNAVAILABLE 1HOUR
In the example JHB was unavailable twice, PTA once, DBN once and then Bloem twice. Unfortunately the unavailability is indicated in the rows underneath the city name without the city name in the same row.
What I need is a formula (probably some and(if(or sort of thing) that will, in a new column, add the relevant city name next to the unavailability data so I can import it to SQL and do some reports.
Eg. I want the resultset to look something like this:
Column A Column B
JHB
UNAVAILABLE 5MIN JHB
UNAVAILABLE 7MIN JHB
PTA
UNAVAILABLE 9MIN PTA
DBN
UNAVAILABLE 5MIN DBN
BLOEM
UNAVAILABLE 10MIN BLOEM
UNAVAILABLE 1HOUR BLOEM
I'll appreciate any advice.