+ Reply to Thread
Results 1 to 7 of 7

Problem with Errors in Formula (Too many arguments)

  1. #1
    Registered User
    Join Date
    01-07-2014
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2007
    Posts
    3

    Lightbulb Problem with Errors in Formula (Too many arguments)

    Hello,

    I am creating a price comparison of four carriers. My spreadsheet lists 9911 origin/ destination combinations. Each carriers has provided nine weight categories. I would like to create a formula that will compare each carriers price and return:



    1.) The lowest rate by weight class

    2.) The carriers name, providing the lowest rate.

    I realize that this may be a bit confusing, so I am attaching a close replica of the spreadsheet I am working on.


    Thank you in advance, for you help.

    Sincerely,

    Bitty
    Attached Files Attached Files
    Last edited by Bitty; 01-07-2014 at 05:57 PM. Reason: misrepresentation in attachment

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Problem with Errors in Formula (Too many arguments)

    In your spreadsheet, the destination is ATL but there are no ATL destinations.

    Should there also be an origin to lookup?

    It looks like you are trying to find the minimum rate per company and weight, for each match of Orig/Dest.

    Once that is confirmed, I'd insert extra columns to make every company's data set match and then you'd most likely use a sumproduct/min/mod formula to pull the data of every nth column and find the minimum value > 0. (To skip company's with blanks)
    Last edited by daffodil11; 01-07-2014 at 04:46 PM.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Registered User
    Join Date
    01-07-2014
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Problem with Errors in Formula (Too many arguments)

    Apologies. I have corrected the issues mentioned above. Please take a look when you have a chance.

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Problem with Errors in Formula (Too many arguments)

    I've run into a wall so far.

    I got as far as:

    =MIN((MOD(COLUMN(OFFSET(C3:AD3,MATCH(AO1&AO2,A3:A31&B3:B31,0)-1,MATCH(AO3,$C$2:$K$2,0)-1)),9)=MOD(MATCH(AO3,$C$2:$K$2,0)+2,9)*(OFFSET(C3:AD3,MATCH(AO1&AO2,A3:A31&B3:B31,0)-1,MATCH(AO3,$C$2:$K$2,0)-1))))

    Struggling to force the arrays to give the answer of 21.43, though I can make it do it manually by calculating

    MOD(COLUMN(OFFSET(C3:AD3,MATCH(AO1&AO2,A3:A31&B3:B31,0)-1,MATCH(AO3,$C$2:$K$2,0)-1)),9)=MOD(MATCH(AO3,$C$2:$K$2,0)+2,9)

    and then

    (OFFSET(C3:AD3,MATCH(AO1&AO2,A3:A31&B3:B31,0)-1,MATCH(AO3,$C$2:$K$2,0)-1))

    and multiplying the sets against one another.

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Problem with Errors in Formula (Too many arguments)

    well i tried this
    in ao4
    =MIN(IF((INDEX($C$3:$AL$31,MATCH($AO$1&$AO$2,INDEX($A$3:$A$31&$B$3:$B$31,0),0),0)>0)*($C$2:$AL$2=$AO$3),INDEX($C$3:$AL$31,MATCH($AO$1&$AO$2,INDEX($A$3:$A$31&$B$3:$B$31,0),0),0))) array enterred
    and in a05
    =LOOKUP(MATCH(AO4,INDEX($C$3:$AL$31,MATCH($AO$1&$AO$2,INDEX($A$3:$A$31&$B$3:$B$31,0),0),0),0),{1,10,19,28},{"company 1","company 2","company 3","company 4"})
    Attached Files Attached Files
    Last edited by martindwilson; 01-07-2014 at 06:52 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Problem with Errors in Formula (Too many arguments)

    Try this array formula in AO4

    =MIN(IF((A3:A31=AO1)*(B3:B31=AO2)*(C3:AL31<>"")*(C2:AL2=AO3),C3:AL31))

    and this one in AO5

    =INDEX(C1:AL1,FLOOR(MATCH(AO4,INDEX(C3:AL31,MATCH(1,(A3:A31=AO1)*(B3:B31=AO2),0),0),0)-1,9)+1)

    both confirmed with CTRL+SHIFT+ENTER
    Audere est facere

  7. #7
    Registered User
    Join Date
    01-07-2014
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2007
    Posts
    3

    Talking Re: Problem with Errors in Formula (Too many arguments)

    You guys are the best!!! Thank you so much for your help.

    Sincerely,

    Bitty

+ 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. Problem with #REF errors
    By tim4d in forum Excel General
    Replies: 5
    Last Post: 04-13-2012, 05:09 PM
  2. Problem with IF statement (too many arguments)
    By djarcadian in forum Excel General
    Replies: 3
    Last Post: 03-31-2009, 02:21 PM
  3. A summing problem with 2 pre-requisite arguments
    By Gurrier271 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-23-2007, 07:22 AM
  4. [SOLVED] small fuction problem pass arguments
    By ina in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-25-2006, 08:30 AM
  5. conditional sum - number of arguments problem
    By LesLdh in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-19-2005, 09:05 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