updating one sheet based on another which has been auto created - excel-formula

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.

Related

Copy excel Picture to different tab using IF THEN formula

I've created an order flow in excel with conditional formatting. The conditional formatting shows the manager the timeline of an order based off of the start date and end date. I've inserted pictures on a separate sheet (sheet2) in the excel file that I would like to overlay on the timeline start date to give the viewer a visual of what product was ordered and how many days (start - end) it will take to arrive.
Is there a way to use a formula within the cells on the order flow to pull back the pictures from Sheet2? The formula I currently have references the picture but the picture pulls back "0" into the cell on Sheet1.
I also created VBA to copy the picture from sheet2 to sheet1 but I'm having a really tough time getting it to paste to the correct cell. That route might be a dead end.
Current formula:
=IF(AND(F6=I6,H6=Sheet2!$B$11,Picture1,"NA"))
Current table without pictures:
What I would like to accomplish with formulas or macros:
Here's what sheet2 looks like for reference:

How to stop Microsoft sheets from skipping a row with my formula when a new answer is entered on Microsoft forms

Got a formula (shown below) that I am trying to apply to Microsoft form answers. Microsoft forms appears to automatically insert a new row with every submitted answer which prevents the formula from working on the correct referenced cell. Is there a formula on Microsoft excel online that will reference correctly when the form inserts a row?
If I manually drag formula down it updates properly and shows correct cell reference. Tried importrange and query to link the data from the form excel sheet to another sheet but these functions aren’t included on excel online. I also tried indirect function but I could not modify my existing formula to work with it.
=IF(RAW!M2<>””,RAW!M2,””) This formula transfers data from “RAW” data sheet to a separate sheet and leaves cell blank if no entry is found in the source cell.
If inserting rows breaks references, you can use Index with a row number.
Instead of
=IF(RAW!M2<>"",RAW!M2,"")
use
=IF(Index(RAW!M:M,row(A2)<>"",Index(RAW!M:M,row(A2),"")
When copied down, the reference to A2 will change from A2 to A3 and so on and the returned value will change accordingly. The formula will always return the value from row 2 if the formula references Row(A2), regardless of rows being inserted or deleted.

Use cell text to reference sheet name in formula

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")

VBA Selecting a cell based of multiple critera

I am trying to find a way to reference a cell in VBA based on two other cells in the datasheet.
In the datasheet I have a domain (D) column e.g. "example.com" and I have a date column (A) e.g. 01/01/2017
In my main worksheet I have a table with domains in column A and the dates in row 10. I am trying to find a to pick the cell in the table that falls into the date and domain based on the record it is currently looking at in the datasheet
Using that first line of data here is the an image highlighting the cell which I want to select.
My plan is to then copy the detail from the [Pass] column into that cell, I am just having problem selecting that cell.
I've tried as many solutions as I can find on here, most using one set of criteria, but I cannot seem to get them to work for me in this situation.
Many thanks
Dummy data
edit - added dummy data - had to remove screenshot of the data as I can only upload two links
Assuming your Sheet2 is as follows
Then, in Sheet1 enter the following formula in Cell E2
=INDEX(Sheet2!$A$10:$AH$17,MATCH(D2,Sheet2!$A$10:$A$17,0),MATCH(A2,Sheet2!$A$10:$AH$10,0))
Drag/Copy down as required. Change range as needed. See image for reference.
EDIT : As per comment
Enter this formula in Cell Z14
=INDEX(Sheet1!$C$2:$C$5,MATCH(A14,Sheet1!$D$2:$D$5,0))

How do I reference a sheet name in my SUMPRODUCT Formula in MS Excel?

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")<>""'))

Resources