+ Reply to Thread
Results 1 to 17 of 17

How to add more ranges to my formula

  1. #1
    Registered User
    Join Date
    11-07-2009
    Location
    England
    MS-Off Ver
    Office 2007
    Posts
    46

    How to add more ranges to my formula

    When I try to add more ranges to my formula I get the error 'too many arguments for this function' could somebody tell me how to achieve the following;

    =IFERROR(INDEX(Monday!$G$47:$I$47,MATCH(MIN(IF(Monday!$G$48:$I$68=INDEX(Monday!$B$3:$K$3,MATCH(Sheet1!A2,Monday!$B$4:$K$4,0)),COLUMN(Monday!$G$48:$I$68)-1)),COLUMN(Monday!$G$48:$I$68)-1,0)),"Holiday")

    I basically need to change the bits in bold so that they include; B3:K3, A10:K10, B17:H17, B24:H24 and B4:K4, A11:K11, B18:H18, B25:H25. How do I achieve this?

    Thanks in advanced.

  2. #2
    Registered User
    Join Date
    09-12-2012
    Location
    DUBAI
    MS-Off Ver
    2007
    Posts
    65

    Re: How to add more ranges to my formula

    Either u should be genius or gone mad. Because i went mad seeing this formula.

    Raj.

  3. #3
    Registered User
    Join Date
    11-07-2009
    Location
    England
    MS-Off Ver
    Office 2007
    Posts
    46

    Re: How to add more ranges to my formula

    I almost went mad myself, but I've had a lot of help from people here.

    Is there anyone who knows how to add more ranges to the areas I've pointed out? That's all I need to do now!

  4. #4
    Registered User
    Join Date
    11-07-2009
    Location
    England
    MS-Off Ver
    Office 2007
    Posts
    46

    Re: How to add more ranges to my formula

    I get an error saying too many arguments used in function, can you copy me the formula so I can try it please?

  5. #5
    Forum Contributor
    Join Date
    11-26-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    159

    Re: How to add more ranges to my formula

    not sure but try dis one,

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    11-07-2009
    Location
    England
    MS-Off Ver
    Office 2007
    Posts
    46

    Re: How to add more ranges to my formula

    I don't see any difference with what you posted to my formula?

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: How to add more ranges to my formula

    do you wqant ALL of "B3:K3, A10:K10, B17:H17, B24:H24 and B4:K4, A11:K11, B18:H18, B25:H25" to be included in your formula?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  8. #8
    Registered User
    Join Date
    11-07-2009
    Location
    England
    MS-Off Ver
    Office 2007
    Posts
    46

    Re: How to add more ranges to my formula

    Quote Originally Posted by FDibbins View Post
    do you wqant ALL of "B3:K3, A10:K10, B17:H17, B24:H24 and B4:K4, A11:K11, B18:H18, B25:H25" to be included in your formula?
    I'd basically like to include A10:K10, B17:H17 and B24:H24 into
    Please Login or Register  to view this content.
    and A11:K11, B18:H18 and B25:H25 into
    Please Login or Register  to view this content.
    , hope this helps

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: How to add more ranges to my formula

    do you have a sample file for me to play with?

  10. #10
    Registered User
    Join Date
    11-07-2009
    Location
    England
    MS-Off Ver
    Office 2007
    Posts
    46

    Re: How to add more ranges to my formula

    I'll make a sample sheet now.

  11. #11
    Registered User
    Join Date
    11-07-2009
    Location
    England
    MS-Off Ver
    Office 2007
    Posts
    46

    Re: How to add more ranges to my formula

    Here's a sample sheet explaining what it is I'd like to do. The formula is in Sheet1, cell B1.
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    11-07-2009
    Location
    England
    MS-Off Ver
    Office 2007
    Posts
    46

    Re: How to add more ranges to my formula

    Anyone? Is it impossible?

  13. #13
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How to add more ranges to my formula

    So, there will be only 1 match for Sheet1!A1 and it could be in row 4, 11, 18 or 25, correct?
    and you want the value above it to be returned?
    Hmmm, tough one, I'll think on it.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  14. #14
    Registered User
    Join Date
    11-07-2009
    Location
    England
    MS-Off Ver
    Office 2007
    Posts
    46

    Re: How to add more ranges to my formula

    That is correct Thank you I appreciate it!
    Last edited by Cutter; 09-22-2012 at 11:17 AM. Reason: Removed whole post quote

  15. #15
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How to add more ranges to my formula

    Okay, I used this formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    where M12 is the cell where you put the name you want to look up. Ranges are from your example. I have attached a spreadsheet. Would this work for you?

    I make the assumption that names will only appear in the rows you mentioned so searching the other rows wouldn't cause an issue.
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    11-07-2009
    Location
    England
    MS-Off Ver
    Office 2007
    Posts
    46

    Re: How to add more ranges to my formula

    That doesn't work for me, I need it to take the vehicle classification from G47-I68 rather than the vehicle itself.

  17. #17
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How to add more ranges to my formula

    The formula searches for a specific value, i.e. in your example, Bob and returns the value in the cell above that (i.e P20 PFS) What is it that you want to return and where is it relative to the term you are searching for?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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