+ Reply to Thread
Results 1 to 3 of 3

Is there any alternative to multiple COUNTIF? Over 64 nested limitation.

  1. #1
    Registered User
    Join Date
    03-07-2013
    Location
    Lincolnshire, England
    MS-Off Ver
    Excel 2011
    Posts
    1

    Is there any alternative to multiple COUNTIF? Over 64 nested limitation.

    Hello, newish to Excel. And brand new to this forum. Apologies in advance if this is a recurring theme. Tried searching, can't find the solution. I have attached the Worksheet. What I am attempting is to get a formula to work that subtracts Annual Leave hours (cells h37 & h38), (work 4 on 4 off), putting the letter L in the relevant cell, the grey ones. The problem is, that for the first 3 days it is 11 hours & the fourth is 10 hours. Tried COUNTIF, SUM and others. It all works OK, until the sheet is saved, then, due to the 64 nesting limitations, I get an error. I have saved the formula to paste when needed, but it is a bit of a pain. The formula looks like this COUNTIF(F7:F9,"=L")*11+COUNTIF(F10,"=L")*10, but repeated many times. Wondered if I could get some help. Many thanks in advance. Jon.
    Attached Files Attached Files
    Last edited by Corsajon; 03-07-2013 at 03:00 PM. Reason: Got told off

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Can't find a Formula that works

    Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem. Once you have done this please send me a PM and I will remove this request.

    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

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

    Re: Is there any alternative to multiple COUNTIF? Over 64 nested limitation.

    Not sure exactly what you are trying to do. (filling in some example numbers with solutions might help) but
    to sum the values in F4:F34 which contain L and multiplying every 4th one by 10 with the others by 11 can be done with this Arrayed formula. (Use CNTRL SHFT ENTER instead of ENTER. You'll see {} around your formula if done properly)

    =SUM(IF($F$4:$F$34="L",IF(MOD(ROW($F$4:$F$34),4)=3,10,11),0))
    Does that help?
    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

+ 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