+ Reply to Thread
Results 1 to 6 of 6

best way to combine formulas? (getting "array elements to countifs are of different size")

  1. #1
    Registered User
    Join Date
    09-10-2014
    Location
    Boise, ID
    MS-Off Ver
    2013
    Posts
    10

    best way to combine formulas? (getting "array elements to countifs are of different size")

    Hello,

    Looking for some help trying to find the best way to combine a couple formulas.

    On sheet 2 there's a countif formula that's working, it returns the count if there is one.

    =if(Q:Q<>"",COUNTIF(Q:Q,Q50),"")

    Now I want to use this with another sheet, so on that sheet, it's doing the same thing but also searching and adding that column from sheet 2...

    =if(Q:Q<>"",COUNTIFS(Q:Q,Q163,'sheet 2'!Q:Q,Q163),"") (I get "array elements to countifs are of different size")

    I'm not sure if I should be compounding the formula or just doing an add to that column or what would work better...Any ideas?

    Thanks.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: best way to combine formulas? (getting "array elements to countifs are of different si

    Hi Maybe simply

    =if(Q:Q<>"",COUNTIF(Q:Q,Q50),"")+if(Q:Q<>"",COUNTIF('sheet 2'!Q:Q,Q163),"")
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    09-10-2014
    Location
    Boise, ID
    MS-Off Ver
    2013
    Posts
    10

    Re: best way to combine formulas? (getting "array elements to countifs are of different si

    This kind of works... I guess I still would like to capture additional occurrences on the first sheet as well?.. if that makes sense.

    I'm wondering is there a way to make one formula which scans two columns and returns that same count?.

    The real life issue is I'm counting the number of returns on a number string I get, but weekly my sheet get's cut/pasted to another sheet....So if there's been 1 return on my sheet, and 2 returns on the other sheet, I still want to see (return count=3) on mine. (having the formula scan a column on mine and on the other and return the count on both or at least mine.

    Whew...thanks.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: best way to combine formulas? (getting "array elements to countifs are of different si

    Hi,

    It seems from your explanation that you are putting a problem in place and then trying to find a way around it.

    One has to ask the obvious question why do you need to cut/paste data from one sheet to another? Why don't you simply keep all the accumulating data on one sheet? That way you simplify considerably any subsequent analysis.

  5. #5
    Registered User
    Join Date
    09-10-2014
    Location
    Boise, ID
    MS-Off Ver
    2013
    Posts
    10

    Re: best way to combine formulas? (getting "array elements to countifs are of different si

    Ya I know, there's reports and stuff ran off of the second sheet, this is a pretty big list of people who access this sheet so I'm trying to not have to change others workflows. They simply don't care about today, just everything before.

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: best way to combine formulas? (getting "array elements to countifs are of different si

    The point I'm making is that you can report stuff before today from a single database of all dates without needing to cut and paste today to somewhere else

+ 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] Use "Array" to Combine two procedures
    By HerryMarkowitz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-20-2013, 10:27 AM
  2. [SOLVED] Array size unknown until the first "loop", how to correction dim/redim the array
    By menichols74 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-15-2013, 10:04 AM
  3. [SOLVED] Assigning a 2D Array to a bigger size range results in "#N/A" in the uncovered elements
    By TopXorGuy in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-24-2013, 10:45 AM
  4. Replies: 0
    Last Post: 01-09-2013, 06:52 PM
  5. [SOLVED] If changed array formula reduce ""\""\""\ - signs to #Missing, will it make ...
    By Maria J-son in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2006, 08:25 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