Excel index missing from sheet but included within formula - excel

I have a gantt chart that has some conditional formatting in it. The problem im having is that I cannot see where the "ganttTypes" array is stored in my excel sheet.
=IF($N$2=INDEX(ganttTypes,1),IF(AND(H$5>=$C6,H$5<=$C6+$D6),IF($C6+$D6*$G6>H$5,$Y$2,""),""),IF(AND(H$5>=$E6,H$5<=$E6+$F6),IF($E6+$F6*$G6>H$5,$Y$2,""),""))
From looking at different sources online there is an indication that "gantTypes" is a particular cell and the "1" next to it indicates the row next to that cell - - here is an example where it explains that

I assume ganttTypes refers to a named range, in which case you should be able to locate it by using the Names Manager, which lists all the named ranges and their location, in Formulas / Defined Names.

Related

R1C1 Formula Notation and External Workbook References

Problem: When creating a VBA script to dynamically insert formulas into a sheet's cells, I've chosen to use R1C1 notation for the cell references in the current sheet (because their locations aren't fixed between files used), and a fixed reference to a specific column in a separate workbook. This fails because Excel is adding unexpected parentheses around the column letters of the external workbook location.
EXAMPLE:
Range(FormulaCol & FormulaRow).FormulaR1C1 = "=IFERROR(MATCH(RC[-4],'[" & ExternalFileNameVariable & "]Sheetname'!B:B,0),"""")"
When the formula is output into my target sheet the script is working on, the formula comes out looking like this:
=IFERROR(MATCH(BG44,'[filename.xlsx]sheetname'!B:(B),0),"")
The B:(B) ultimately results in the formula failing. I cannot use a variable reference since the location of the columns in my working spreadsheet will vary, but the columns' location in the external worksheet will be fixed.
I have to do this for several formulas. The only alternatives I can think of to address this are to create dedicated variables for the columns in the working spreadsheet I'm referencing and using FIND methods to locate each column's header and saving its column location to a variable... but I swear, there's got to be a better way.

Can you create Excel hyperlinks to specific values/words within cells?

I'm creating a large spreadsheet for my job and need to create an Index at the top which links to specific sections of the workbook. I know how to link to cells within a spreadsheet - however, this spreadsheet will be consistently adding and removing rows, meaning the cell numbers will be changing.
Is there a way to create a hyperlink to a specific value/word within a cell? For instance, can I create a link to a cell with the header phrase "Transactions List," that will always link their even if its cell number changes?
Yes, there is way. You can use Match() function within Hyperlink() function to refer cell dynamically. Lets demonstrate how to do. Suppose you have Transactions List (see attached screenshot below) word in Column F and you want to hyperlink that cell even when you add few rows before that cell. Match function will find row number of cell containing Transactions List in specified column and link to that cell by below formula.
=HYPERLINK("#F"&MATCH("Transactions List",F:F,0),"Hello Hyperlink")
Even you can hyperlink cell in another sheet by following formula. Change sheet name in your case.
=HYPERLINK("#Sheet2!F"&MATCH("Transactions List",Sheet2!F:F,0),"Hello Hyperlink")

Google Sheets/Excel get named ranged name based on cell value with multiple rows for dependent dropdown

I would like to use a dependent dropdown with a named range name based on the cell value on the first column of each row or beside it. This column is a dependent dropdown as well with a defined name range somewhere in the sheet.
Something like these tutorials but they only apply on one row.
https://productivityspot.com/dependent-drop-list-google-sheets/#comment-1609
https://www.excel-easy.com/examples/dependent-drop-down-lists.html
https://www.excel-easy.com/examples/excel-files/dependent-drop-down-lists.xlsx
It would be nice if it would work on both excel and google sheets.
Screenshot example with Column C is the first dropdown and D will get the named range value.
I found this formula below which generates the list on another area in the sheet, but only applies on the first row A2..
=ARRAYFORMULA(INDIRECT(A2))
should be applicable with A2,A3 and so on.
What you are trying to achieve can be done in 2 ways it can be done
1) Via App Scripts WATCH THIS
2) Via Google sheets formula READ THIS

Excel - Counting no of items in a different sheet between a certain range matching specific criteria

I have been building up an excel sheet to interrogate a data set and produce a set of metrics. I'm aiming to make the process as expandable as possible.
In the links are pictures of a simple mock up data set to illustrate what I'm trying to achieve, it contains a metrics sheet where I want to display the information and the data set sheet:
and the
The aim is to have the highlighted cell (D6) display the number of items in "Sheet2" that meet the criteria of Item Status "Open".
I have managed this at first with the formula:
COUNTIFS(Sheet2!C:C,"Open")
and then to make it more expandable using:
COUNTIFS(INDIRECT(" ' "&D4&" ' !C:C "),"=" &C8)
This means I can use a cell (D4) to reference the sheet I want to look in and a cell (C8) to reference the criteria I want to search for. This works well until I need to look for blanks in the data set, at which point it counts all the blanks in the column specified (see cell D8 in metrics sheet).
So I was wondering if there would be a neat way to specify the column range to look in, eg C1:C100, by using cells to reference the range similar to using the cells to reference sheet and criteria. I can use the below formula but it still requires the sheet name to be written in the formula rater than referenced out to a cell.
COUNTIF((Sheet2!C1:INDIRECT(CONCATENATE("Sheet2!C", B2))),""&C8)
When I apply this to the data sets I'm looking at I will need to consider multiple sheets where the data sets will contain the same criteria (located in the same column across all sheets) but the data set will vary in length. This is why I'd like to keep the cell formula referencing the variables out to specific cells in the metrics sheet so that if I add in a new data set or criteria that I want to look at I don't have to re-type a load of formula but just copy it across.
UPDATE
Following the answer from JvdV I have been able to remove all the variables from the formula into cells in the metrics sheet (useful for what I'm doing and may be of interest to others). It essentially uses the 'INDIRECT' and 'CONCAT' functions to build the string needed, colour coded picture
Here is something you can try to suit your needs:
The formula I used in F1 would translate to:
=COUNTBLANK(INDIRECT(G1&"C1:C"&COUNTA(INDIRECT(G1&"A:A"))))
Cell G1 is just a list like:
If you don't want to have all used rows but use the range specified in your cell B2 then I guess it would look like:
=COUNTBLANK(INDIRECT(G1&"C1:C"&B2))
Beware; using INDIRECT() causes your formula to be volatile!

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