+ Reply to Thread
Results 1 to 13 of 13

Conditional Multiplication question

Hybrid View

camo704773 Conditional Multiplication... 08-23-2023, 10:41 AM
Fluff13 Re: Conditional... 08-23-2023, 10:43 AM
AliGW Re: Conditional... 08-23-2023, 10:45 AM
Pete_UK Re: Conditional... 08-23-2023, 10:59 AM
camo704773 Re: Conditional... 08-23-2023, 11:05 AM
Pete_UK Re: Conditional... 08-23-2023, 11:20 AM
camo704773 Re: Conditional... 08-23-2023, 11:31 AM
camo704773 Re: Conditional... 08-23-2023, 11:14 AM
camo704773 Re: Conditional... 08-23-2023, 11:03 AM
AliGW Re: Conditional... 08-23-2023, 11:18 AM
camo704773 Re: Conditional... 08-23-2023, 11:32 AM
AliGW Re: Conditional... 08-23-2023, 11:34 AM
camo704773 Re: Conditional... 08-23-2023, 11:37 AM
  1. #1
    Registered User
    Join Date
    08-23-2023
    Location
    US
    MS-Off Ver
    2016
    Posts
    9

    Conditional Multiplication question

    Hi,

    Can anyone help me to turn the below into a working function for a single cell? I tried using this but the arguments conflict -> =IF(AND(C3>=176,C3<=500),C3*2.5,)+IF(AND(C3>=501,C3<=1000),C3*2,)


    $2.5 per mile on miles (176-500) + $2 per mile (501-1000)


    Thanks

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,741

    Re: Conditional Multiplication question

    How about
    Formula: copy to clipboard
    =IF(AND(C3>=176,C3<=500),C3*2.5,IF(AND(C3>=501,C3<=1000),C3*2,))

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,403

    Re: Conditional Multiplication question

    Welcome to the forum.

    Is this a tiered rate or flat rate calculation?

    If the latter:

    =C3*LOOKUP(C3,{0,176,501},{0,2.5,2})
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,411

    Re: Conditional Multiplication question

    Surely the second IF should be:

    ... (C3-500)*2 ...

    The first IF will not give you the enhanced rate for the first 500 miles if you exceed that. Please explain the constraints more clearly.

    Do you not get anything if you have done less than 176 miles?

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    08-23-2023
    Location
    US
    MS-Off Ver
    2016
    Posts
    9

    Re: Conditional Multiplication question

    Anything under 176 generates a charge of $1000. I had no trouble generating that calculation, so I did not include it in the question. Apologies for the lack of clarity.

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,411

    Re: Conditional Multiplication question

    Okay, the full set of criteria can be obtained with this:

    =IF(C3<176,1000,IF(C3<=500),C3*2.5,IF(C3<=1000,(C3-500)*2+500*2.5,"Above 1000 miles")))

    You haven't given the criteria for larger than 1000 miles (perhaps that won't occur ?)

    Hope this helps.

    Pete

  7. #7
    Registered User
    Join Date
    08-23-2023
    Location
    US
    MS-Off Ver
    2016
    Posts
    9

    Re: Conditional Multiplication question

    Quote Originally Posted by Pete_UK View Post
    Okay, the full set of criteria can be obtained with this:

    =IF(C3<176,1000,IF(C3<=500),C3*2.5,IF(C3<=1000,(C3-500)*2+500*2.5,"Above 1000 miles")))

    You haven't given the criteria for larger than 1000 miles (perhaps that won't occur ?)

    Hope this helps.

    Pete
    I see now. Thank you for your help Pete. This will work.

  8. #8
    Registered User
    Join Date
    08-23-2023
    Location
    US
    MS-Off Ver
    2016
    Posts
    9

    Re: Conditional Multiplication question

    Quote Originally Posted by Pete_UK View Post
    Surely the second IF should be:

    ... (C3-500)*2 ...

    The first IF will not give you the enhanced rate for the first 500 miles if you exceed that. Please explain the constraints more clearly.

    Do you not get anything if you have done less than 176 miles?

    Hope this helps.

    Pete
    In totality, this is what I came up with =IF(C3<176,1000,IF(AND(C3>=176,C3<=500),C3*2.5,)+IF(AND(C3>=501,C3<=1000),C3*2,))

    If C3= 1000, I am trying to find a way to make the rate come out to $2,250=500*2.5+500*2.

  9. #9
    Registered User
    Join Date
    08-23-2023
    Location
    US
    MS-Off Ver
    2016
    Posts
    9

    Re: Conditional Multiplication question

    Hi Fluff & Ali,

    Thank you for your help. For example, if C3=1000 miles, I would want the rate to come out to $2,250=500*2.5+500*2.

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,403

    Re: Conditional Multiplication question

    Quote Originally Posted by camo704773 View Post
    Hi Fluff & Ali,

    Thank you for your help. For example, if C3=1000 miles, I would want the rate to come out to $2,250=500*2.5+500*2.
    That's a TIERED calculation.

  11. #11
    Registered User
    Join Date
    08-23-2023
    Location
    US
    MS-Off Ver
    2016
    Posts
    9

    Re: Conditional Multiplication question

    Quote Originally Posted by AliGW View Post
    That's a TIERED calculation.
    Yes, sorry for not specifying.

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,403

    Re: Conditional Multiplication question

    Well, I asked the question in post #2!!!

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

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

  13. #13
    Registered User
    Join Date
    08-23-2023
    Location
    US
    MS-Off Ver
    2016
    Posts
    9

    Re: Conditional Multiplication question

    Thank you Ali!
    Last edited by AliGW; 08-24-2023 at 02:02 AM. Reason: Please do NOT quote unnecessarily! Use the QUICK REPLY button instead.

+ 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] conditional multiplication
    By jsm250 in forum Office 365
    Replies: 7
    Last Post: 05-15-2019, 06:48 PM
  2. Formual of conditional multiplication
    By CAABYYC in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-10-2016, 04:13 PM
  3. Conditional multiplication?
    By TPDave in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-24-2015, 01:12 PM
  4. Replies: 6
    Last Post: 08-05-2009, 05:14 AM
  5. Multiplication Question
    By bronsonb in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-05-2008, 07:59 AM
  6. Replies: 6
    Last Post: 11-02-2005, 06:20 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