+ Reply to Thread
Results 1 to 6 of 6

lookup formula is not working when referencing a cell's data rather than the actual data

  1. #1
    Registered User
    Join Date
    05-21-2015
    Location
    Peterborough
    MS-Off Ver
    2010
    Posts
    3

    lookup formula is not working when referencing a cell's data rather than the actual data

    I have a formula using a lookup array that works if I reference the actual data I am looking for e.g. "12345678" but not if i reference a cell C12 that contains that data. Obviously I need it to look at a cell then go and check the array for a match and cannot enter the data manually.

    Any help please?

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: lookup formula is not working when referencing a cell's data rather than the actual da

    We'll need to see the formula you're currently using.
    Some examples would be helpful, too.
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    05-21-2015
    Location
    Peterborough
    MS-Off Ver
    2010
    Posts
    3

    Re: lookup formula is not working when referencing a cell's data rather than the actual da

    =INDEX('MTD Sales'!$M$2:$M$3000,MATCH("10427748",'MTD Sales'!$D$2:$D$3000,0))

    If I replace "10427748" with the cell that contacins the data I want to search (C17) the result is #N/A

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: lookup formula is not working when referencing a cell's data rather than the actual da

    I'm guessing that the contents of C17 are text, but the contents of D2:D3000 are numeric. (or the other way)
    Consequently, no match is found.

    test this by trying these formulas:
    Please Login or Register  to view this content.
    One of them will probably return a valid answer.

    Does that help?

  5. #5
    Registered User
    Join Date
    05-21-2015
    Location
    Peterborough
    MS-Off Ver
    2010
    Posts
    3

    Re: lookup formula is not working when referencing a cell's data rather than the actual da

    Fantastic, thank you very much. I thought I had made sure the cells were formatted the same too?

  6. #6
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: lookup formula is not working when referencing a cell's data rather than the actual da

    Glad you got something you can use!

    If that resolves your issue, please take a moment to mark this thread as SOLVED (from the Thread Tools menu)

+ 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. [SOLVED] Referencing cell text data in another formula
    By Farmer Ali in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-07-2014, 06:39 AM
  2. [SOLVED] Referencing cell in lookup formula
    By jeffandnicole in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-12-2014, 04:41 PM
  3. excel formula working on a cell which is having data in a data validation cell
    By sujithy007 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-16-2013, 04:18 AM
  4. excel formula working on a cell which is having data in a data validation cell
    By sujithy007 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-16-2013, 04:05 AM
  5. Replies: 3
    Last Post: 03-09-2013, 10:23 AM

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