+ Reply to Thread
Results 1 to 4 of 4

Lookup function error (google sheets)

  1. #1
    Registered User
    Join Date
    10-31-2016
    Location
    Ohio
    MS-Off Ver
    Excel 2007
    Posts
    32

    Lookup function error (google sheets)

    LOOKUP2.jpg

    This is what I have come up with so far but returning an error

    =IF(ISNUMBER(SEARCH(C59, C2:C)), VLOOKUP(C59,E2:E, 2))

    Returning out of range error

    I would like to do a search for the value in C59 (123456) in all of column C - if that value is found return the value in column E of that row

    IE: search for 123456 - returns 56789 in E59

    Thanks for you help

    Mike

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Lookup function error (google sheets)

    Hi,

    You're telling it to return the value from the second column of a one column range. You should be using a formula like
    =VLOOKUP(C59,C2:E, 3)
    I'm not familiar enough with Google sheets to determine if that range is valid or if you should use C:E rather than C2:E
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,825

    Re: Lookup function error (google sheets)

    I am not sure where the SEARCH() function comes from. As explained in Google's help file, the SEARCH() function is used to find a text string within a larger text string: https://support.google.com/docs/answer/3094154 which is not what you appear to be trying to do. Unless I am misunderstanding something, the SEARCH() function does not seem to belong to your desired task.

    I would recommend that you spend some time with the VLOOKUP() help file (https://support.google.com/docs/answer/3093318 ) to better understand how this function is used. As xlnitwit noted, one of the first mistakes to be noted is that you are asking the function to return a value from the second column of a one column range, which should trigger an error.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Registered User
    Join Date
    10-31-2016
    Location
    Ohio
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: Lookup function error (google sheets)

    Wow that completely works, looks like I was making it far to complicated, this is the formula I used

    =VLOOKUP(C59,C:E, 3, false)

    Thanks!!

    Mike

+ 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. Excel lookup formula to google sheets
    By bluechipjr in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-27-2017, 06:04 PM
  2. UDF that performs like google sheets SPLIT function
    By reynastus2 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-21-2016, 05:57 PM
  3. email row contents based on cell values (google sheets populated by google forms)
    By reedg in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 01-13-2016, 02:55 PM
  4. Google Sheets Query IF column problem Converted to Excel Function?
    By Garthilk in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-24-2015, 10:37 PM
  5. Import function in Google Sheets
    By Bielbo in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 1
    Last Post: 10-27-2014, 06:15 AM
  6. need 'continue' function. how to update to new google sheets?
    By eusair in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 10-15-2014, 11:36 PM

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