+ Reply to Thread
Results 1 to 6 of 6

Change formula based on results of vlookup

  1. #1
    Valued Forum Contributor
    Join Date
    03-23-2008
    Location
    Tennessee
    MS-Off Ver
    Office 2007
    Posts
    706

    Change formula based on results of vlookup

    Greetings, Gurus.

    This one is giving me a headache. Here's the deal,... the formula below will lookup a value, (net weight), based on a part number. It is tweaked to show blank if the returned value is #N/A or 0.
    Please Login or Register  to view this content.
    The "*2.2" at the end is used to convert Kg to pounds. The problem is, some of the weights are in pounds, (from domestic suppliers), and some are in Kg, (from overseas suppliers). If I have a list of supplier numbers, and this number is captured in cell K31, is there anyway to lookup this number to determine if the supplier is domestic or overseas, and then apply the correct formula based on that result?

    I have named a table containing all domestioc supplier numbers "domestic", and all overseas supplier numbers "overseas". I was hoping I could lookup the vendor number, (cell K31), from these tables, and then apply the formula based on which table it was found in.

    Since I'm certain this was confusing, (i've even confused myself), I've attached a sample workbook. The two cells bordered in thich RED are the cells containing the values. The sheet is protected, but no password is used.

    Thanks in advance for any help you can offer.

    Hutch
    Attached Files Attached Files

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

    Please Login or Register  to view this content.
    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.

  3. #3
    Valued Forum Contributor
    Join Date
    03-23-2008
    Location
    Tennessee
    MS-Off Ver
    Office 2007
    Posts
    706
    Thanks for the reply, NBVC.

    Works great, the only issue is that if cell S3 is empty, then rather than Q28, (cell containing the formula), being empty it says #VALUE!.

    Any suggestions?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    If you get an #NA result within an OR/AND statement, it screws things up...

    Try:

    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor
    Join Date
    03-23-2008
    Location
    Tennessee
    MS-Off Ver
    Office 2007
    Posts
    706
    You are Awesome!!

    That fixed me right up!!

  6. #6
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256

    One option

    One option is the combine the Vendor names list (Domestic and International) into one list. Then search the combined list for Domestic/International or Pound/Kg. The new formula would then be something like: If ("Kg",1,2.2)

    I have put the new formula in the enclosed file, as an example.
    I was not sure where the formula was going so I just typed it as text.

    Hope this helped
    Ola
    Attached Files Attached Files

+ 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