seeking help with an if loop or lookup formula to check data against a list of data and return a satement

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

Excel Workbook
ABCDEFGH
1Trip or ChargeDestination (Lat)Destination (Long)locationPump location List
2C53.277-9.074Not at chargerLatLong
3T53.28-9.05Not at charger53.335-9.186single coordinate ued in if loop
4T53.276-9.076Not at charger53.276-9.076
5T53.335-9.186Charge53.335-9.186Need to check list
6C53.335-9.186Not at charger53.335-9.186
7T53.276-9.272Not at charger53.276-9.272
8T53.335-9.186Charge53.335-9.186
9C53.335-9.186Not at charger
Sheet1
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,216,102
Messages
6,128,852
Members
449,471
Latest member
lachbee

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top