SUMIFS Across Multiple Worksheets - Need to fix #REF! error - excel

I'm trying to perform a SUMIFS across multiple worksheets. I found a couple of formulas online, and pieced together the Formula below. I can't seem to fix the #REF error that came with it. Do you have any advise on how best to resolve the problem?
I have reviewed each sheet to make sure I am referencing the same information across all sheets. I've set columns to text or Accounting as necessary. Not sure what else I can try.
=SUMPRODUCT(SUMIFS(INDIRECT("'"&2011:2019&"'!J:J"),INDIRECT("'"&2011:2019&"'!C:C"),$B3,INDIRECT("'"&2011:2019&"'!E:E"),2))
I am expecting to see the Sum of Column J for all sheets given 2 constraints.
Text in Column C:C (All Sheets 2011-2019) must equal the text in Cell $B3, and the number value in column E:E (All Sheets 2011-2019) must be 2.
I am getting the #REF error instead.

Related

Excel Cell Staggering using Indirect functions

I am creating a formula to read multiple sumif, certain values are > 0 across multiple excel sheets. The formula works fine, but when I copy it to the right, the columns do not stagger by 1.
I realize this is a problem associated with the indirect function I used, but how do I get the columns to change to CU, CV etc?
Appreciate the help.
=SUMPRODUCT(SUMIF(INDIRECT("'"&Exam2&"'!$d$2:$d$102"),">0",INDIRECT("'"&Exam2&"'!CT2:CT102"))/$D$105)

Find partial match in Excel using VLOOKUP

I thought I knew a lot about Excel, but I clearly still have a lot to learn. I'm trying to do a VLOOKUP formula with partial match to my worksheet named Metadata.
Formula
=VLOOKUP("*"&A7,Metadata!$A$1:$K$107009,4,0)
Sheet1
Sheet Metadata
If you look at the 4th column on Metadata there is "CCSST ADDO", which partially matches "ADDO Agency" (in Column A on Sheet1), but the above formula does not work; I just get an #N/A error.
What am I doing wrong?

Excel - matching 2 cells from one sheet in another

I am trying to work out a formula that says if one cell in a sheet, and another cell in the same sheet match the same names of cells in a different sheet, then the answer is a cell between those sheets.
I've tried MATCH and INDEX but can't seem to get it to work. Is anyone able to assist?
Cheers

Find duplicate cells in multiple excel sheets

I have an excel sheet with multiple spreadsheets. There are columns 'firstname' and 'lastname' of about 1000 rows in each of the spreadsheets. I have recorded a macro which shows me the duplicate rows having in the format 'firstname lastname'.
=IF(SUMPRODUCT(($B$2:$B$1000=B2)*1,($C$2:$C$1000=C2)*1)>1,"Duplicates","No duplicates")
The above formula can find duplicate rows in one sheet. How do I tweak the formula so that it can match with the other sheets as well. A formula or VBA will also do.
You can fool Excel into accepting a 3D range reference as a parameter of COUNTIFS with INDIRECT and array processing courtesy of a SUMPRODUCT wrapper. With the names of the worksheets to be processed in Z2:Z4 then this will count duplicates across the worksheets for the first and last names in columns B & C.
=SUMPRODUCT(COUNTIFS(INDIRECT("'"&$Z$2:$Z$4&"'!B:B"),B2,INDIRECT("'"&$Z$2:$Z$4&"'!C:C"),C2))
You should be able to incorporate that standard formula into your IF() statement for duplicate recognition.
Please note that INDIRECT is considered a volatile function that recalculates with any change in the workbook. Depending upon the extent of your data it is likely that you will experience some calculation lag.
      

how to add figures from multiple worksheets in excel using ranges

I have multiple worksheets all using the same template
I have a summary page and have a formula that works for an individual sheet
=SUMPRODUCT(--(sheet1!F4:sheet1!F500>=A1),--(sheet1!F4:sheet1!F500
the formula checks the relevant ranges on sheet 1 and returns the values in the boxes in the date range specified in A1 and A2
The problem is that I want to do this for multiple sheets and use a 3D reference.
I have tried
=SUMPRODUCT(--(sheet1:sheet3!F4:sheet1:sheet3!F500>=A1),--(sheet1:sheet3!F4:sheet1:sheet3!F500
and also thrown in some extra brackets to be safe
=SUMPRODUCT(--((sheet1:sheet3!F4):(sheet1:sheet3!F500>=A1)),--((sheet1:sheet3!F4):(sheet1:sheet3!F500)
neither of these work and I am getting the #NAME? error
any ideas would be appreciated
Thanx in advance
Gary
Your formulas look like they are truncated, are you just trying to count dates between A1 and A2 inclusive? You can't use 3D references in SUMPRODUCT. In Excel 2007 you could use this formula
=SUMPRODUCT(COUNTIFS(INDIRECT("'"&G1:G3&"'!F4:F500"),">="&A1,INDIRECT("'"&G1:G3&"'!F4:F500"),"<="&A2))
where you have all your sheet names listed in G1:G3

Resources