+ Reply to Thread
Results 1 to 7 of 7

SORT causing #VALUE error in {SUM(COUNTIFS}

Hybrid View

  1. #1
    Registered User
    Join Date
    04-13-2020
    Location
    West Virginia, USA
    MS-Off Ver
    2016
    Posts
    3

    SORT causing #VALUE error in {SUM(COUNTIFS}

    First time here.... Thanks for all the know how sharing.

    Formula is ok until after i sort...

    I have a problem i have a{= IFS(COUNTIFS(), SUM(COUNTIFS(), SUM(COUNTIFS()},... that references other worksheets (Ref!, Sort!). I am not using named tables only "ref!$A$3, etc.

    I am having trouble adding a condition to count dates. They are formatted as GENERAL. If I manually retype the syntax into the formula it will work until I run a (recorded) macro to sort the data After i run the "sort" macro or manually sort via toolbar it gives me a #VALUE error. Then I have to retype the darn thing in the formulas again. The formula works fine for the yearly table but not for the monthly, when i added the monthly sort data it is showing #VALUE. I eve tried coping the line from the yearly sort table but after I sort it goes to #VALUE again. This might be the death of me. HELP

    The formula evaluation tool seems to think there is text in the formula, but i checked it and reformatted. I also copy and paste it when entering it again.

    Full Disclosure: I am not good at Excel at all. I am doing the "hey, Ill look on google for this one", as i write the spreadsheet.

    Thanks all,

  2. #2
    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. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,933

    Re: SORT causing #VALUE error in {SUM(COUNTIFS}

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook.
    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.

  3. #3
    Registered User
    Join Date
    04-13-2020
    Location
    West Virginia, USA
    MS-Off Ver
    2016
    Posts
    3

    Re: SORT causing #VALUE error in {SUM(COUNTIFS}

    I attached a reduced file with the sensitive information scrubbed. The problem is in Matrix!AD6:AD11 a similar function is in Matrix!M6:M11. The #REF errors ar due to my scrubbing the document of other information. Thank you for looking at this for me.
    Attached Files Attached Files

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: SORT causing #VALUE error in {SUM(COUNTIFS}

    Hi,

    Not quite sure what you mean here, though I can tell you that the #VALUE! errors in the Matrix sheet are a result of the fact that the formulas in AD6:AD11 contain one or more COUNTIFS constructions referencing ranges of unequal dimensions, e.g. Sort!$A$3:$A$300 and Sort!$A$3:$A$301.

    The criteria_ranges passed to COUNTIFS must be of an equal dimension.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  5. #5
    Registered User
    Join Date
    04-13-2020
    Location
    West Virginia, USA
    MS-Off Ver
    2016
    Posts
    3

    Re: SORT causing #VALUE error in {SUM(COUNTIFS}

    XOR LX; You sir, are a genius! That fixed it! I just verified it on the original sheet. Truly, I owe you one!!
    This forum is the best thing ever!!!! Thanks to all for sharing all your knowledge with everyone.

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: SORT causing #VALUE error in {SUM(COUNTIFS}

    Glad to hear it!

    Cheers!

  7. #7
    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. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,933

    Re: SORT causing #VALUE error in {SUM(COUNTIFS}

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

+ 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] "" causing issues for COUNTIFS and SUMIFS
    By RoundaboutCJP in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-22-2019, 11:00 AM
  2. Checkbox causing error
    By ezzzcel in forum Excel General
    Replies: 8
    Last Post: 03-02-2015, 12:33 AM
  3. [SOLVED] Constant value causing #value! error????
    By MARKSTRO in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-29-2014, 12:57 PM
  4. DTPicker Not available causing error
    By djsouljah in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-14-2013, 11:08 AM
  5. Leading spaces causing sort problem
    By Delta223 in forum Excel General
    Replies: 2
    Last Post: 01-30-2010, 04:57 AM
  6. quotes causing error
    By dftf in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-02-2009, 03:27 PM
  7. sort and remove duplicates macro causing unique entries to vanish
    By excellentexcel in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-24-2009, 04:58 PM

Tags for this Thread

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