+ Reply to Thread
Results 1 to 3 of 3

IF Function - too many arguments

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    12-22-2006
    Posts
    114

    Thumbs up IF Function - too many arguments

    Dear all,

    I am trying to do some tiered pricing model and I have created the following formula:

    Formula: copy to clipboard
    =IF(D2<=$C$12,D2*$D$12,IF(D2<=$C$13,($C$12*$D$12)+((D2-$C$12)*$D$13),IF(D2<=$C$14,(($C$12*$D$12)+(($C$13-$C$12)*$D$13)+((D2-$C$13)*$D$14)),IF($D$2<=$C$15,(($C$12*$D$12)+(($C$13-$C$12)*$D$13)+(($C$14-$C$13)*$D$14)+(($D$2-$C$14)*$D$15))),(($C$12*$D$12)+(($C$13-$C$12)*$D$13)+(($C$14-$C$13)*$D$14)+(($C$15-$C$14)-$D$15)+(($D$2-$C$15)*$D$16)))))


    I am sure this is correct but when I press enter it says too many arguments. Is there a simpler way of doing this?

    Many thanks in advance. I have also uploaded a trial spreadsheet.

    Alex
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,202

    Re: IF Function - too many arguments

    Try this ...

    =SUMPRODUCT((D2>=C3:C7)*(D2-C3:C7)*(D4:D8-D3:D7))

  3. #3
    Forum Contributor
    Join Date
    12-22-2006
    Posts
    114

    Re: IF Function - too many arguments

    Amazing! and so simple!! Thank you so much!

+ 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] Too many arguments for this function
    By JmundleBofA in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-20-2014, 01:01 PM
  2. [SOLVED] Too Many Arguments for This Function.
    By sander07 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-22-2013, 07:34 PM
  3. two different arguments in one IF function?
    By VAZIM in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-16-2013, 08:48 AM
  4. Too few arguments for this function
    By clovelly in forum Excel General
    Replies: 6
    Last Post: 10-22-2012, 07:40 PM
  5. 10 Arguments in a function
    By noisewatter in forum Excel General
    Replies: 2
    Last Post: 04-30-2009, 01:24 PM
  6. sum :Too many arguments for this function
    By eparsons in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-04-2007, 01:05 PM
  7. Replies: 0
    Last Post: 06-20-2006, 10:55 AM
  8. [SOLVED] Is it possible to use more than 8 arguments in a function?
    By Breesmom in forum Excel General
    Replies: 1
    Last Post: 12-20-2005, 11:10 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