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:
Related
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))
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 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
I am trying to develop a spreadsheet pulling data and text from another sheet within the workbook while leaving the cell blank if not populated in the aforementioned sheet.
I am trying to develop a materials summary sheet pulling from a stock transfer sheet.
In the initial column, I have inserted the formula =IF('Stock Issue'!D13,'Stock Issue'!D13," "). This works fine in that if the cell in Stock Issue is populated, the quantity inserted is pulled into the new spreadsheet and if not, it is left blank.
I tried duplicating this formula in the next column for Quantity and the result I get is #VALUE!
Since this cell is populated with text (i.e., EA, LF, SF, etc.), is that the issue? How can I populate with text?
Thanks
You need to test whether the cell is blank:
=IF(ISBLANK('Stock Issue'!D13),"",'Stock Issue'!D13)