+ Reply to Thread
Results 1 to 5 of 5

Adding 'OR' into VLOOKUP Formula

  1. #1
    Registered User
    Join Date
    10-23-2019
    Location
    Bixby, OK
    MS-Off Ver
    365 business
    Posts
    2

    Adding 'OR' into VLOOKUP Formula

    I have VLOOKUP formulas created on an xlsx spreadsheet. You choose a selection from the dropdown and it poplulates a price. We have now added a 12 and 36 month pricing option for my pricing sheet. I need my formula to include 2 VLOOKUP options based on the selection of 12 or 36mths. My main formula is =IF($C$12=12,VLOOKUP(A33,U41:V45,2,FALSE),0). I need to add an OR =IF($C$12=36,VLOOKUP(A33,P42:Q50,2,FALSE),0), changing the 12 to 36mt in the beggining of the formula and pulling from a different set of numbers.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Adding 'OR' into VLOOKUP Formula

    Try this:

    =IF($C$12=12,VLOOKUP(A33,U41:V45,2,FALSE),IF($C$12=36,VLOOKUP(A33,P42:Q50,2,FALSE),""))
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: Adding 'OR' into VLOOKUP Formula

    =if($c$12=12,vlookup(a33,u41:v45,2,false),if($c$12=36,vlookup(a33,p42:q50,2,false),0)).
    1. Click on the * Add Reputation if you think this helped you
    2. Mark your thread as SOLVED when question is resolved

    Modytrane

  4. #4
    Registered User
    Join Date
    10-23-2019
    Location
    Bixby, OK
    MS-Off Ver
    365 business
    Posts
    2

    Re: Adding 'OR' into VLOOKUP Formula

    Thank you, that worked!. I 'm not sure were I was off, but I was.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Adding 'OR' into VLOOKUP Formula

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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] Help with VLookUp Formula in adding values.
    By PixelPug in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-07-2016, 04:17 PM
  2. [SOLVED] Help adding something to my ifferror/Vlookup formula
    By The excel apprentice in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-04-2016, 03:02 AM
  3. [SOLVED] Vlookup formula is broken when adding a column
    By Perk1961 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-24-2015, 04:05 AM
  4. Adding a formula to VBA (IF, Vlookup etc)
    By galvinpaddy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-21-2012, 01:08 AM
  5. [SOLVED] Adding conditions to a VLOOKUP formula
    By MFCPA in forum Excel General
    Replies: 11
    Last Post: 04-18-2012, 11:48 AM
  6. adding a vlookup formula with vba
    By etsoft in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-08-2008, 11:45 AM
  7. Adding Prices on top of VLOOKUP formula
    By cjconnor24 in forum Excel General
    Replies: 10
    Last Post: 11-22-2007, 07:44 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