+ Reply to Thread
Results 1 to 10 of 10

Trying a formula that changes the % it multiplies it by depending on the value of the cell

  1. #1
    Registered User
    Join Date
    10-27-2014
    Location
    Illinois
    MS-Off Ver
    2010
    Posts
    13

    Trying a formula that changes the % it multiplies it by depending on the value of the cell

    Okay, i have a given cell. when this cell is between 0 and 100 i want it to output the formula * 5%
    when it is between 100 and 500 i want it to * 10%
    and anything higher than 500 i want it to be at 15%

    of course im using the lookup function to find the last value in a row, so it made this alot harder for me and need a hand with straightening it out, i feel i almost have it, but still getting an error

    =IF((AC16>0,AC16<100),((LOOKUP(2,1/(X3:X34<>""),X3:X34))-X3)*5%,(IF((AC16>101,AC16<500),((LOOKUP(2,1/(X3:X34<>""),X3:X34))-X3)*10%),((LOOKUP(2,1/(X3:X34<>""),X3:X34))-X3)*15%))

    ould anyone help with this please?

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,814

    Re: Trying a formula that changes the % it multiplies it by depending on the value of the

    Would you be willing to use a lookup for the multiplier as well as the last value? The multiplier part should be as easy as *VLOOKUP(AC16,lookup_table,2,TRUE) [note the TRUE in the 4th argument -- that is key].
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    10-27-2014
    Location
    Illinois
    MS-Off Ver
    2010
    Posts
    13

    Re: Trying a formula that changes the % it multiplies it by depending on the value of the

    not sure 100% on how to use this function.

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,814

    Re: Trying a formula that changes the % it multiplies it by depending on the value of the

    It is very similar to the LOOKUP() function that you are using: https://support.office.com/en-us/art...8-93a18ad188a1

    If I understand your LOOKUP() function, it might look like:
    =((LOOKUP(2,1/(X3:X34<>""),X3:X34))-X3)*VLOOKUP(AC16,lookup_table,2,TRUE)

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

    Re: Trying a formula that changes the % it multiplies it by depending on the value of the

    You can shorten the LOOKUP a bit.

    This...

    LOOKUP(1E100,X3:X34)

    Will do the same as this...

    LOOKUP(2,1/(X3:X34<>""),X3:X34)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Registered User
    Join Date
    10-27-2014
    Location
    Illinois
    MS-Off Ver
    2010
    Posts
    13

    Re: Trying a formula that changes the % it multiplies it by depending on the value of the

    okay im trying to think about how i would be able to use the vlookup in this spreadsheet. because im not typing anything in to a cell for it to pull up a value of another cell

  7. #7
    Registered User
    Join Date
    10-27-2014
    Location
    Illinois
    MS-Off Ver
    2010
    Posts
    13

    Re: Trying a formula that changes the % it multiplies it by depending on the value of the

    does anyone one see a messup in the code i given? commas or anything out of place?

  8. #8
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,814

    Re: Trying a formula that changes the % it multiplies it by depending on the value of the

    You look like you are missing AND() functions where you are testing your conditions AND(AC16>0,AC16<100) for example.

  9. #9
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: Trying a formula that changes the % it multiplies it by depending on the value of the

    if you are really stuck on using the IF statement instead of the recommendations from Mr Shorty and Tony Valko, then...
    unless some of your possible values in AC16 could be less than 0, you can get rid of half of your if statements.
    so you could shorten it to =IF(AC16<100..... then IF(AC16<500 then your last statement. Multiple IF then statements quit working after they find the part that becomes true. But if you want the combination of IF(AC16>0,AC16<100) then you need to add the AND part in front of it per Mr Shorty.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

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

    Re: Trying a formula that changes the % it multiplies it by depending on the value of the

    Quote Originally Posted by ryankelley318 View Post
    when this cell is between 0 and 100 i want it to output the formula * 5%
    when it is between 100 and 500 i want it to * 10%
    and anything higher than 500 i want it to be at 15%
    Your intervals are not well defined.

    If the value was 100 should the multiplier be 5% or 10%?

+ 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: 6
    Last Post: 09-16-2015, 09:47 AM
  2. [SOLVED] Formula that multiplies only every year
    By tryingtoexcelatexcel in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 06-08-2015, 05:35 AM
  3. Replies: 5
    Last Post: 06-08-2015, 03:42 AM
  4. Replies: 3
    Last Post: 03-24-2015, 11:24 AM
  5. Replies: 7
    Last Post: 05-09-2008, 10:13 AM
  6. IF formula that also multiplies
    By amy22x3 in forum Excel General
    Replies: 5
    Last Post: 10-10-2007, 09:36 AM
  7. Formula that multiplies X for every Y unit
    By Dholden1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-04-2007, 06:43 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