I am creating a summary page for daily production reports. All sheets are in one workbook. Daily sheets are named 17-Oct, 16-Oct, 15-Oct, etc with a Monthly Summary sheet. The summary sheet contains a table with the first column being dates in the same date format as the tabs. I want to use the date in the first column of the summary worksheet to reference the tab with the same name and pull data from it. I have been trying to figure out a way to use the Indirect function to do this but nothing I've tried works. I don't want to have to manually edit the formula in each row to reference the corresponding sheet. I've seen similar questions but the solutions are not working for me.
Dates are numbers in Excel shown as the format dictates and sheet names are strings.
You will need to format the number as text in the INDIRECT:
=INDIRECT("'" & TEXT(A1,"dd-mmm") & "'!A1")
Related
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?
I have a spread sheet I've been working on and would like to create a summary sheet within the workbook to make it more user friendly (avoiding using VBA)
I want the user to be able to select a month (1-12) from a drop down in the sheet named "Summary" and the data to be populated from the "Actuals" sheet.
Currently I manually update the formula:
"=SUMIF(Acutals!A:A,Summary!A5,Acutals!B:B)"
and move the "Acutals!B:B" along a column when I want the next months data (January = B:B, February = C:C, March = D:D etc.).
Can I use the indirect function and sumif (to find the correct account description) to refer to the drop down in cell B1 on the Summary Sheet and link that to the correct month column on the Actuals sheet?
=SUMPRODUCT((Acutals!$B$5:$M$200)*(Acutals!$A$5:$A$200=$B5)*(Acutals!$B$3:$M$3=$B$1))
unlike SUMIFS, SUMPRODUCT can be used on multiple columns but cannot reference whole columns eg A:A.
I am trying to figure out how to reference a worksheet name in my SUMPRODUCT cell and I can't figure it out. I am not sure if its because my logic is flawed and there is a better way or if what I want to do isn't possible without using VB code.
Basically I have a workbook that has various data. However for this instance I am only looking at a single column, in this case, the DATE. So I am basically using a SUMPRODUCT Formula to read the entire column for a date that is older than 120 days, but not counting items in the column that are blank. So just cells with a date in it.
This workbook will have worksheets added every month and the previous month will be stored. To make this workbook Dynamic, the first work sheet has various graphs to display information and so it can be printed nicely while the last page has all the formulas.
Basically I looking to create a drop down box on the first worksheet. That dropdown list will have the previous months (the worksheets are named by months), and ideally they will be referenced into the formula as it changes.
For example:
My current formula works: SUMPRODUCT(('OCT 2015'!$G:$G<TODAY()-120)*('OCT 2015'!$G:$G<>""'))
I would like the formula to like: SUMPRODUCT(('CELL_THAT_HAS_SHEETNAME'!$G:$G<TODAY()-120)*('CELL_THAT_HAS_SHEETNAME'!$G:$G<>""'))
And that cell it will reference is a dropdown list and corresponds to the sheetname.
You would incorporate the INDIRECT Function:
=SUMPRODUCT((INDIRECT(A1&"!$G:$G")<TODAY()-120)*(INDIRECT(A1&"!$G:$G")<>""'))
I have a workbook that has sheets added to each day with data on with set values which need to be entered onto a front sheet for kpi reporting
the tabs that are being added each day (via a macro) all have the date(dd-mm-yy)as a name and the data that needs to be copied is always in the same cell (C62) and need to be copied onto the front sheet in the column for that day
I've tried using the indirect but keep getting error's and have also looked at vlookup and index/match
If I am understanding correctly the indirect function should work:
=INDIRECT("'"&TEXT(A1,"dd-mm-yy")&"'!C62")
Where A1 contains the date of the tab you are getting the total for (as a number). The indirect formula here puts it in the number format (dd-mm-yy) of your tabs.
I'm trying to create a VLOOKUP for billing purposes. I need to have the number of last month's documents in the current month's billing information. I have the VLOOKUP working with no problems, but I want to name the sheet after the month and have the VLOOKUP reference a cell for the sheet name. So far I have:
=VLOOKUP(A4,INDIRECT(CONCATENATE(B1,"!")),A:G,7,FALSE)
where A4 is Project Name
B1 is Previous month (ie July2014)
A:G is the table array on the previous month's sheet
in which it is column 7 that contains the closing document count.
Please try:
=VLOOKUP(A4,INDIRECT(B1&"!A:G"),7,FALSE)
though you might want to consider using named ranges of Workbook scope.