James12513
New Member
- Joined
- Jul 24, 2014
- Messages
- 27
Hello all,
I am trying to match each city to whether it rained or not. I can't seem to find a function that will allow me to do that - I've tried the V-Lookup and Index-Match functions but have had no luck...
Andrew posted a very nice formula which populates the 'cities visited' cells in table 2 below: =REPT("Y",COUNTIFS($G$2:$G$6,$K2,$H$2:$H$6,L$1)>0)
Does anyone know a formula that would populate each rain column in table 2?
Any ideas would be fantastic
Data table1:
<tbody>
</tbody>
Presentation table 2:
<tbody>
</tbody>
I am trying to match each city to whether it rained or not. I can't seem to find a function that will allow me to do that - I've tried the V-Lookup and Index-Match functions but have had no luck...
Andrew posted a very nice formula which populates the 'cities visited' cells in table 2 below: =REPT("Y",COUNTIFS($G$2:$G$6,$K2,$H$2:$H$6,L$1)>0)
Does anyone know a formula that would populate each rain column in table 2?
Any ideas would be fantastic
Data table1:
Country ID | Cities visited | Rain? |
H240 | London | Y |
H240 | New York | N |
G456 | Tokyo | Y |
H240 | Sydney | N |
W869 | Florida | N |
<tbody>
</tbody>
Presentation table 2:
Country ID | London | Rain? | New York | Rain? | Tokyo | Rain? | Sydney | Rain? | Florida | Rain? |
W869 | Y | N | ||||||||
G456 | Y | Y | ||||||||
H240 | Y | Y | Y | N | Y | N |
<tbody>
</tbody>