+ Reply to Thread
Results 1 to 11 of 11

Trying to Multiply the result of an IF function combined with a VLOOKUP function

Hybrid View

  1. #1
    Registered User
    Join Date
    05-20-2015
    Location
    sydney
    MS-Off Ver
    home office and student 2013
    Posts
    4

    Trying to Multiply the result of an IF function combined with a VLOOKUP function

    Hi,
    I'm trying to multiply the result of an IF function combined with a VLOOKUP function by another cell that will change to work out commission rates. My formula is =IF(B9<='Commission Rates'!$A$3,"0",VLOOKUP(B9,'Commission Rates'!$A$2:$B$14,2)) located on cell C9. This formula is working fine and updates anytime I change the figures in B9. I am trying to multiply the answer to this which is a percentage linked to another worksheet by the variable amount in cell B9 and get that answer in cell D9. The only answer that I keep getting is "VALUE".
    Please help I have no idea what is going wrong.

  2. #2
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Trying to Multiply the result of an IF function combined with a VLOOKUP function

    Can you upload the sample file for quick result???
    Thanks,
    Anil Dhawan


    Click *Add Reputation to say "Thanks" and don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved) if you are satisfied.

    Don't stop when you are tired. STOP when you are done!

  3. #3
    Registered User
    Join Date
    05-20-2015
    Location
    sydney
    MS-Off Ver
    home office and student 2013
    Posts
    4

    Re: Trying to Multiply the result of an IF function combined with a VLOOKUP function

    Thanks. Attached is my workbook
    Attached Files Attached Files

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Trying to Multiply the result of an IF function combined with a VLOOKUP function

    I don't see any #VALUE! errors in your file.

    Also, the Sales sheet is protected so we can't change anything for testing purposes.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2505
    Posts
    13,766

    Re: Trying to Multiply the result of an IF function combined with a VLOOKUP function

    Your commission rates table is text not numbers. When I coerced the text into numbers those tables the formulas work.
    Attached Files Attached Files
    Last edited by FlameRetired; 05-21-2015 at 08:39 PM.

  6. #6
    Registered User
    Join Date
    05-20-2015
    Location
    sydney
    MS-Off Ver
    home office and student 2013
    Posts
    4

    Re: Trying to Multiply the result of an IF function combined with a VLOOKUP function

    Sorry guys. Attached is unprotected workbook with all numbers reformatted and the #VALUE! error.To clarify I'm trying to multiply the monthly sales by the commission % so that when monthly sales change the commission payable should change as well
    Attached Files Attached Files

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Trying to Multiply the result of an IF function combined with a VLOOKUP function

    On the Commission Rates sheet cells B3:B14 are TEXT values, not numeric values.

    Re-enter the data as numeric values like this:

    Data Range
    B
    1
    % Comm
    2
    0
    3
    0.015
    4
    0.03
    5
    0.045
    6
    0.06
    7
    0.075
    8
    0.09
    9
    0.105
    10
    0.12
    11
    0.135
    12
    0.15
    13
    0.165
    14
    0.18


    Format as Percentage 1 decimal place.

    Then your formulas will work!

  8. #8
    Registered User
    Join Date
    09-28-2018
    Location
    Shikoku, Japan
    MS-Off Ver
    2011
    Posts
    1

    Re: Trying to Multiply the result of an IF function combined with a VLOOKUP function

    Thanks so much for this helpful info.
    Your reply is to someone else's question from three years ago but reading through it today helped me immensely with my spreadsheet frustrations.
    in my case I was trying to multiply the currency amount returned using a VLOOKUP by a number to get a unit price. But I kept on getting the #VALUE error message.
    Despite checking the formatting of the cells I simply couldn't get the result of a VLOOKUP to perform a simple multiplication with another cell. Was pulling my hair out trying the cells formatted as Currency and Number back and forth. In the end after setting the formatting to number I just reentered the data and it worked as it should have.

  9. #9
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Trying to Multiply the result of an IF function combined with a VLOOKUP function

    Your Comission rate are probably text re-type them or be sure that they are in numeric/percentages.
    another one is the quote in your formula "0"
    =IF(B9<='Commission Rates'!$A$3,"0",VLOOKUP(B9,'Commission Rates'!$A$2:$B$14,2))
    just a practice for excel user not to use quotes on numbers for computations.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  10. #10
    Registered User
    Join Date
    05-20-2015
    Location
    sydney
    MS-Off Ver
    home office and student 2013
    Posts
    4

    Re: Trying to Multiply the result of an IF function combined with a VLOOKUP function

    Thanks Everyone. Appreciate the help. Works like a charm Tony.

  11. #11
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Trying to Multiply the result of an IF function combined with a VLOOKUP function

    You're welcome. Thanks for the feedback!

+ 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. Vlookup/Match/Index combined with IF function to return 2nd to last result
    By Ollypetcon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-23-2014, 07:54 AM
  2. [SOLVED] VBA Multiply Function & Sub Procedure to Show Result
    By NeedForExcel in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-24-2013, 06:05 AM
  3. Replies: 4
    Last Post: 06-25-2012, 10:38 AM
  4. Multiply result of IF function in same cell
    By rockytop80 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-10-2012, 12:23 PM
  5. vlookup combined with AND-function
    By martho in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-20-2006, 08:55 AM

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