+ Reply to Thread
Results 1 to 8 of 8

IF and VLOOKUP

  1. #1
    Registered User
    Join Date
    03-05-2019
    Location
    Cannock, England
    MS-Off Ver
    O365 auto update, so latest version
    Posts
    17

    Question IF and VLOOKUP

    Hello

    I hope that I can explain this easily, but this is my first post so please be gentle!

    I have a fully working spreadsheet which acts as our pricing matrix. However, I have been tasked with adding a percentage increase to those prices if certain criteria are met on a previous worksheet.

    Its a simple yes or no (drop down cell created) that leads to an uplift of 25% in price on the next worksheet along. However the difficulty comes in that the pricing is generated by the use of a vlookup. So in short I need a formula to say its just simply the result of the vlookup if the previous answer was no, or if the answer to the previous questions is yes, then its the vlookup*1.25

    I hope that all makes sense?

    I look forward to hearing from an oracle!

    Kind regards

    John

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: IF and VLOOKUP

    Post a sample spreadsheet with expected results, remove any sensitive data, create a mockup example if necessary.
    Use the Go Advanced option at the bottom of the page then scroll down to Manage Attachments as the "paperclip" method does not work on this forum.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    08-08-2013
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel Office 365, PowerBI, Excel 2010, Excel 2013
    Posts
    12

    Re: IF and VLOOKUP

    =if('Otherworksheet'!A1="Yes",1.25,1)*vlookup([lookupvalue],[lookup array],[column number],0)

    Where 'Otherworksheet'!A1 references your dropdown cell.

    Should work.

  4. #4
    Registered User
    Join Date
    03-05-2019
    Location
    Cannock, England
    MS-Off Ver
    O365 auto update, so latest version
    Posts
    17

    Re: IF and VLOOKUP

    Ok I have attached an example spreadsheet. The 'details' sheet is where the yes or no question is, results is the sheet I need amending and the data comes from the 'data' sheet

    Thanks

    John
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-08-2013
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel Office 365, PowerBI, Excel 2010, Excel 2013
    Posts
    12

    Re: IF and VLOOKUP

    Yep, try
    =IF(Details!B2="yes",1.25,1)*VLOOKUP(A2,Data!A2:B4,2,FALSE)

    or

    =IF(Details!$B$2="yes",1.25,1)*VLOOKUP(A2,Data!A2:B4,2,FALSE)

    If you want to copy the formula down and still refer to the one dropdown cell.
    Last edited by DMTD; 03-05-2019 at 08:56 AM.

  6. #6
    Registered User
    Join Date
    03-05-2019
    Location
    Cannock, England
    MS-Off Ver
    O365 auto update, so latest version
    Posts
    17

    Re: IF and VLOOKUP

    Thats worked, thank you very much for your help

  7. #7
    Registered User
    Join Date
    08-08-2013
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel Office 365, PowerBI, Excel 2010, Excel 2013
    Posts
    12

    Re: IF and VLOOKUP

    ^_^ Great!

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: IF and VLOOKUP

    John, welcome to the forum

    For future reference, please take a moment to read the forum rules and use thread titles that are descriptive of your problem - not what you think the answer might be. (think google search terms?).

    Many members search our previous posts, and thread titles play a big part of the search. I doubt anybody would do a search based on your title?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Replies: 5
    Last Post: 12-07-2016, 09:18 AM
  2. [SOLVED] When vlookup ragnes is mutiple: How do vlookup value finding occurrence against coresspond
    By silambarasan.J in forum Excel Formulas & Functions
    Replies: 34
    Last Post: 07-07-2015, 09:32 AM
  3. Replies: 0
    Last Post: 12-26-2013, 01:12 PM
  4. Display Cell within VLookup range that excel thinks matches the VLookup Value
    By headachexcelperson in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-04-2013, 04:56 PM
  5. vlookup? match? index? MULTIPLE criteria for vlookup search problem....
    By aborg88 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-11-2013, 09:56 AM
  6. Replies: 5
    Last Post: 07-29-2009, 07:53 AM
  7. [SOLVED] vlookup function-Can vlookup command find the data from the 5 sheets.
    By Rishab shah in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM

Tags for this Thread

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