+ Reply to Thread
Results 1 to 8 of 8

Excel 2007 : Use VLOOKUP to then populate another cell with IF statement

  1. #1
    Registered User
    Join Date
    07-17-2012
    Location
    Charlotte
    MS-Off Ver
    Excel 2007
    Posts
    6

    Smile Use VLOOKUP to then populate another cell with IF statement

    Hello, So I am new to using excel.

    I am pulling a value from another excel file using VLOOKUP, that can be anywhere from 1 to 6,000.

    Then Based off the value pulled for example let's say it's: 4,227 in cell A1

    I want to use and IF statement to populate another value in a different cell. I am currently using:

    Please Login or Register  to view this content.
    It only outputs: 0

    Am I using the formula incorrectly? Do I have to attack this a different way? Thanks for any help.
    Last edited by spectralfire; 07-17-2012 at 11:37 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Use VLOOKUP to then populate another cell with IF statement

    Firstly you need to remove all the = and ". But there is something wrong with the logic I think. Could you put your =IF() statements into words?
    Last edited by Søren Larsen; 07-17-2012 at 11:36 AM.
    Sincerely
    S?ren Larsen

    "Give a man a fish, and you'll feed him for a day. Give a man a fishing rod, and he'll steal your yacht!"

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902

    Re: Use VLOOKUP to then populate another cell with IF statement

    Assuming whole numbers from 0 on could be in A1

    Try:

    =LOOKUP(A1,{0,501,1001,2001,4001},{5,10,25,30,40})
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    07-17-2012
    Location
    Charlotte
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Use VLOOKUP to then populate another cell with IF statement

    Yeah only whole numbers from 0 on could be in A1.

    I gave it a try and it comes up: #N/A

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902

    Re: Use VLOOKUP to then populate another cell with IF statement

    How about?

    =LOOKUP(A1+0,{0,501,1001,2001,4001},{5,10,25,30,40})

  6. #6
    Registered User
    Join Date
    07-17-2012
    Location
    Charlotte
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Use VLOOKUP to then populate another cell with IF statement

    #Value Error

  7. #7
    Registered User
    Join Date
    07-17-2012
    Location
    Charlotte
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Use VLOOKUP to then populate another cell with IF statement

    No! I rearranged some stuff & that works perfect!!! Thanks so much NBVC!!! Your Awesome!

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902

    Re: Use VLOOKUP to then populate another cell with IF statement

    Are you sure there is a number in A1?

    Edit... okay saw your last postt...all is good

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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