+ Reply to Thread
Results 1 to 9 of 9

VLOOKUP on a Calculated Cell

  1. #1
    Forum Contributor
    Join Date
    12-11-2014
    Location
    Missouri
    MS-Off Ver
    2016
    Posts
    153

    VLOOKUP on a Calculated Cell

    Good Morning Everyone,

    In Sheet1, I have cell A2 with 14 numbers(22711076900772) in it. In cell B2 I use (=LEFT(D2,3)) which returns a value of 227.
    I want cell C2 to return a value from Sheet2, column B(2) based on the value in cell B2, Sheet1.

    IFERROR(VLOOKUP(Sheet1!B2,'Sheet2'!$A$1:$A$2,2,FALSE),0)

    What am I missing here?

    Thanks,
    Dean
    Attached Files Attached Files

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: VLOOKUP on a Calculated Cell

    Like this ?
    =IFERROR(VLOOKUP(B1+0,$Sheet2!A1:B2,2,0),0)

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,625

    Re: VLOOKUP on a Calculated Cell

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: VLOOKUP on a Calculated Cell

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    3 issues:
    - Where is 2nd column for VLOOKUP? You declare A:A it means only 1 column.
    - you are looking for B2 which is empty.
    - number vs. text

    Change B2 for (B1*1) and change for A:B and should be fine
    Last edited by KOKOSEK; 02-05-2019 at 12:02 PM.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  5. #5
    Forum Contributor
    Join Date
    12-11-2014
    Location
    Missouri
    MS-Off Ver
    2016
    Posts
    153

    Re: VLOOKUP on a Calculated Cell

    Thanks Everyone!!
    Just so I understand, what does the (+0) represent?

    Thanks,
    Dean

  6. #6
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: VLOOKUP on a Calculated Cell

    Same idea as *1 'convert' text which looks like number into number

  7. #7
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: VLOOKUP on a Calculated Cell

    The LEFT function returns a "text string number". To convert to a number any arithmetic operation does the trick

  8. #8
    Forum Contributor
    Join Date
    12-11-2014
    Location
    Missouri
    MS-Off Ver
    2016
    Posts
    153

    Re: VLOOKUP on a Calculated Cell

    Thanks again!

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,625

    Re: VLOOKUP on a Calculated Cell

    You're welcome. Thanks for the rep.

+ 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. VLOOKUP using a cell calculated with NOW returns Error
    By Chris Berding in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  2. [SOLVED] VLOOKUP using a cell calculated with NOW returns Error
    By Chris Berding in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 PM
  3. VLOOKUP using a cell calculated with NOW returns Error
    By Chris Berding in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  4. VLOOKUP using a cell calculated with NOW returns Error
    By Chris Berding in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 11:05 AM
  5. [SOLVED] VLOOKUP using a cell calculated with NOW returns Error
    By Anne Troy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 06:05 AM
  6. [SOLVED] VLOOKUP using a cell calculated with NOW returns Error
    By Chris Berding in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  7. [SOLVED] VLOOKUP using a cell calculated with NOW returns Error
    By Chris Berding in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  8. VLOOKUP using a cell calculated with NOW returns Error
    By Chris Berding in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 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