Array Formula on Range of Sheets - excel

I have this formula on several sheets in cell F1
{=SUM(IF(MONTH(A3:A210)=1,B3:B210,0))}
I have this formula on a totals sheet
=SUM(Start:End!F1)
I've been trying to combine the two into one formula on the totals page. Thank you everyone getting me this far.

I ended up creating a pivot table using the wizard which allows you to choose multiple consolidation ranges.
I was given the idea here:
https://support.office.com/en-us/article/Consolidate-multiple-worksheets-into-one-PivotTable-3ae257d2-ca94-49ff-a481-e9fc8adeeeb5

Related

Table Reference Formula Excel VBA

I'm using a formula to lookup-up values from a table in excel. The formula is added to a cell via VBA.
The formula is in use on two sheets, looking up the same information from a table on a third sheet.
In it's entered form the formula is:
=IFERROR(INDEX(PSE_Data[#All],MATCH($F7,'PSE Data'!K:K,0),16),"")
When I record adding this formula through VBA on one sheet it is recorded as:
=IFERROR(INDEX(PSE_Data[#All],MATCH(RC6,'PSE Data'!C[-12],0),16),"""")
on the other sheet it is recorded as:
=IFERROR(INDEX(PSE_Data[#All],MATCH(RC6,'PSE Data'!C[-2],0),16),"""")
I understand that the C[-2] and C[-12] must be some sort of referencing for the column within the table, but what I don't understand is why that reference would be different when using the formula in separate sheets. Could someone explain or point me in the right direction of some resources?

How to use sumifs formula with horizontal table (and data range)

I have an excel sheet which I need help with.
I have already took sum with
=SUM(INDEX(B3:K7,MATCH(A13,A3:A7,0),0))
formula and need to get the sum for specific data range. Like sum only for last 3 days from today.
Please help.
Try this SUMPRODUCT variant
=SUMPRODUCT(INDIRECT("B"&MATCH(A13,A3:A7)+2&":K"&MATCH(A13,A3:A7)+2),--(B2:K2>=(B10-3)),--(B2:K2<="B10"))
UPDATED
To have the formula in different sheet you need to include the sheet references. I suggested cutting and pasting it from Sheet2 to Sheet1 but missed out that the part inside INDIRECT will not be adjusted by Excel automatically.
=SUMPRODUCT(INDIRECT("Sheet2!B"&MATCH(A13,Sheet2!A3:A7)+2&":ZZ"&MATCH(A13,Sheet2!A3:A7)+2),--(Sheet2!B2:ZZ2>=(TODAY()-7)))

Countif linked to all sheets in the workbook

Hello I am trying to use countif to add up how many cells have January in. For example I have 40 worksheets and I need to find out how many of them contain january in the date in cell C3 on all of the sheets. and put the answer in another sheet.
OPTION 1) Formula Method
1) Write out a list of all the names of your sheets in a column.
2) On the "Formulas" ribbon, select Define Name.
3) Give it a name in the top box, ie. SHEETNAMES
Then use this formula:
=SUMPRODUCT(COUNTIF((INDIRECT("'"&SHEETNAMES&"'!C11")),"Completed"))
I would have thought the formula for your original question would have been very similar but it keeps showing up as an error. I have been using the following:
=SUMPRODUCT(--(MONTH(INDIRECT("'"&SHEETNAMES&"'!C3"))=1))
You can use a 3-D formula, but unfortunately, the only formulas that allow 3-D references are mathematical functions that don't have much in the way of logic (no IFs, ANDs, etc.). If you restructure your workbook a little bit to, say, add IF(C3="January",1,0) in Z3 on each sheet, then you can do SUM(Sheet2:Sheet40!Z3) on your summary sheet.

Vlookup formula in excel

I was hoping someone could offer me a little help please on a formula. In one of my cells I use a vlookup to search for the colour in B12 and match it to the colour on another worksheet called cars.
Now this works perfectly fine, but after running the formula I have to select the last row of data and press control & d, or drag down the cell up until the last cell, my question is that is it possible to add this forumla into the cell and have it automatically run all the way down to the last row of data? my forumula is
=VLOOKUP(B12,coloursc:carsc,2)
You can use an Excel table for your data entry. Formulas and formatting will automatically be applied to any new row in the table. You no longer need to manually copy down or pre-fill empty areas of the spreadsheet with formulas.
Learn more about tables in this Microsoft article and this tutorial on Contextures.com

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