+ Reply to Thread
Results 1 to 7 of 7

Find closest values and return adjacent values

  1. #1
    Registered User
    Join Date
    03-11-2015
    Location
    Los Angeles, CA
    MS-Off Ver
    2010
    Posts
    4

    Find closest values and return adjacent values

    Hello!

    I am attempting to find the closest value from a list and have it pull in the adjacent data that corresponds to that value in Excel 2010.

    If you look at the attached document in sheet 1 -I am planning for a new store in the LA area, so for for planning purposes I need to pull in transaction and traffic history (highlighted in orange) based on similar sales volume (Highlighted in yellow).

    So if I am forecasting this new store to have a sales of $2,500,00 then, I would need for the formula to look at sheet 2, find the closest value (-in this example Store 240 is closest) therefore pull in 58,500 as my transaction and 300,000 as my traffic.

    If it could pull in averages for the 2 closest values that would also be helpful!

    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,367

    Re: Find closest values and return adjacent values

    Please find the file attach, hope this helps...
    Using array formula

    regards
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    03-11-2015
    Location
    Los Angeles, CA
    MS-Off Ver
    2010
    Posts
    4

    Re: Find closest values and return adjacent values

    Thanks for the help Azumi!

    When I open the file on my end it #N/A's out, I attempted to duplicate the formula in my original file and I receive the same error. Not sure if my excel version 2010 has anything to do with it.

    This is what my formula looks like:

    =INDEX('Data Mapping'!$M$14:$M$223,MATCH(INDEX('Data Mapping'!$I$14:$I$223,MATCH(MIN(ABS('Data Mapping'!$I$14:$I$223-'Census Worksheet'!$G$21)),ABS('Data Mapping'!$I$14:$I$223-'Census Worksheet'!$G$21),0)),'Data Mapping'!$I$14:$I$223,0))
    Last edited by John_B_Russell; 03-24-2015 at 11:26 AM.

  4. #4
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,367

    Re: Find closest values and return adjacent values

    you need to confirm press CTRL+SHIFT+ENTER button together because this array formula, ENTER alone not works

  5. #5
    Registered User
    Join Date
    03-11-2015
    Location
    Los Angeles, CA
    MS-Off Ver
    2010
    Posts
    4

    Re: Find closest values and return adjacent values

    Azumi, I am entering CTRL+SHIFT+ENTER on multiple locations I placed the formula and am still getting #N/A. Any other tips and or suggestions?

  6. #6
    Registered User
    Join Date
    03-11-2015
    Location
    Los Angeles, CA
    MS-Off Ver
    2010
    Posts
    4

    Re: Find closest values and return adjacent values

    Hi Azumi! I kept playing with the formula and it now works! This is exactly what I was looking for. Thank you for your help!!!
    Last edited by John_B_Russell; 03-27-2015 at 07:54 PM.

  7. #7
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,367

    Re: Find closest values and return adjacent values

    Glad you find the way out

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Macro to find all specific values in column and replace adjacent cell values
    By dblock02 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-23-2013, 06:03 AM
  2. Replies: 6
    Last Post: 03-06-2013, 03:30 PM
  3. How to find closest values in multiple columns and return adjacent values.
    By Patrician in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-28-2013, 01:47 PM
  4. Replies: 1
    Last Post: 11-02-2012, 08:32 AM
  5. Replies: 0
    Last Post: 09-06-2012, 04:06 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1