Formula Help

welshraz

New Member
Joined
Apr 29, 2016
Messages
42
Office Version
  1. 365
Platform
  1. Windows
Hello,

I am pulling my hair out as I cannot see the issue with this formula:

=INDEX(CombinedNOI[OBJECTID],MATCH(MIN(SQRT((CombinedNOI[Lat]-U13)^2+(CombinedNOI[Long]-V13)^2)),SQRT((CombinedNOI[Lat]-U13)^2+(CombinedNOI[Long]-V13)^2),0),1)

It was working perfectly until I linked it to a different table - I have changed the table names and column IDs to match, but it all I get is #REF!. Am I missing something?
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
#REF! would mean that one of the table names is incorrect, there is nothing else in the formula that would cause it.

Best suggestion would be to use the formula evaluation tool (Formulas > Evaluate or Alt m v) to see which part is causing the error.

Note that an error in the table or one of the cells used in the formula will be carried to this formula if not resolved.
 
Upvote 1
Solution
when i created a table named CombinedNOI w/ columns: OBJECTID, Lat, Long; then in the ref cells (as in your formula posted) u13 & v13
it does seem to be returning OBJECTID values from the table.

could you share your data so we can see what's going on better?
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

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