abberyfarm
Well-known Member
- Joined
- Aug 14, 2011
- Messages
- 733
Hello,
Would anybody be able to help me to write a complicated if loop or suggested another way of doing it perhaps by some sort of lookup.
I have data below.
In Column D I have an If loop which returns a statement (possible 3) if the GPS coordinates in columns B and C match the single GPS coordinate in F3:G3.
My problem is that I have a list of coordinates (20 +) in columns F and G and not a single value. I need the If loop (or lookup) to check the list and not just the single coordinate and return the correct statement.
The current if statements are below. I've also attached the workbook.
https://dl.dropbox.com/u/54057365/All/mrexcel.xlsx
Appreciate any help
Kind regards
Would anybody be able to help me to write a complicated if loop or suggested another way of doing it perhaps by some sort of lookup.
I have data below.
In Column D I have an If loop which returns a statement (possible 3) if the GPS coordinates in columns B and C match the single GPS coordinate in F3:G3.
My problem is that I have a list of coordinates (20 +) in columns F and G and not a single value. I need the If loop (or lookup) to check the list and not just the single coordinate and return the correct statement.
The current if statements are below. I've also attached the workbook.
https://dl.dropbox.com/u/54057365/All/mrexcel.xlsx
Appreciate any help
Kind regards
Excel Workbook | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
1 | Trip or Charge | Destination (Lat) | Destination (Long) | location | Pump location List | |||||
2 | C | 53.277 | -9.074 | Not at charger | Lat | Long | ||||
3 | T | 53.28 | -9.05 | Not at charger | 53.335 | -9.186 | single coordinate ued in if loop | |||
4 | T | 53.276 | -9.076 | Not at charger | 53.276 | -9.076 | ||||
5 | T | 53.335 | -9.186 | Charge | 53.335 | -9.186 | Need to check list | |||
6 | C | 53.335 | -9.186 | Not at charger | 53.335 | -9.186 | ||||
7 | T | 53.276 | -9.272 | Not at charger | 53.276 | -9.272 | ||||
8 | T | 53.335 | -9.186 | Charge | 53.335 | -9.186 | ||||
9 | C | 53.335 | -9.186 | Not at charger | ||||||
Sheet1 |