I want to update the cell reference in C3 depending on the 'Current Day'.
For example, if 'Current Day' is 'Thu' then I'd like C3 to be 'Z3'
Any suggestions to get me started? webpages to read?
To get the value on the basis of Current Day use the following formula:
=HLOOKUP(H3,$I$2:$O$3,2,FALSE)
See image for reference
On seeing the formula in image attached probably you are looking for INDIRECT function:
=INDIRECT("'5+ 000""s By Day'!" & C3)
You can combine both in one formula as
=INDIRECT("'5+ 000""s By Day'!" & HLOOKUP(H3,$I$2:$O$3,2,FALSE))
For details on INDIRECT function see this.
A hlookup() would do it - =HLOOKUP(TEXT(TODAY(),"DDD"),I2:O3,2,0)
Related
The title is an extremely simplified version of my question.
I basically have a column of months and then a column of values. The values are absolute-referenced to another sheet. The problem is, I want the absolute reference from =Sheet2!$D$3 to change to =Sheet2!$D$4 only when =month(A#)=3 and I want to be able to pull down this formula so it automatically changes from $D$3 to $D$4 $D$5 $D$6, etc every March but stays absolute on that value from April - Feb.
I have the result of =LEFT(FORMULATEXT(D4),LEN(FORMULATEXT(D4))-LEN(A4)) where D4 is just where I had the original formula and A4 is the =if(month=3,A3+1,A3) in D5
A =concatenate(D5,A4) should change =Sheet2!$D$3 to =Sheet2!$D$4 and it does. But now I need to to be recognized as a formula.
Help please.
As mentioned sample data would be preferred, but I think you are looking for the Indirect() formula. Go read up on that.
Hope that you are feeling great today : )
I am looking to a formula with which I would be able to find a match for a cell among a column of data and then copy the associated detail next to it.
Let me give you a simple example below:
So the main problem is that I cannot use simply a VLOOKUP because I am not trying to compare the "(match)Column" cells with the "(search)Column" and "(data)Column" - but quite the opposite way around.
I have tried to use the following formula but unfortunately without any success:
=IF(ISERROR(MATCH(”*” & A1 & ”*”,$B$1:$B$3,0)),"-","A1")
in which - reflecting to the sample: A1 is the first cell of (search)Column and B1:B3 is the (data)Column.
Thank you very much in advance for your kind help and I wish you a further nice day!
Try this:
The formula in D2 translates to:
=INDEX($B$1:$B$4,SUMPRODUCT(ISNUMBER(SEARCH(" "&$A$2:$A$4&" ",C2))*ROW($A$2:$A$4)))
With the cell A1 containing a formula saved as string. Ex: Sum(B1:B5)
In A2 I want to execute content of A1. But when I put =(=A1) in A2 excel gives me formula error. Is there any way I can execute content of A1 in A2 as formula
Mind you no VBA is allowed. Can someone please help?
Please only those people should answer who have done this thing in the past. No hit and tries please
=A1
that's all you need to point the value to the value in cell A1
With VBA :
with VBA you can write some custom function and then evaluate the formula.
Then call the function in excel wherever you required like below
=eval_formula(A1)
Function eval_formula(fr)
eval_formula = Evaluate(fr.Value)
End Function
Refer the link here for more details
https://superuser.com/questions/253353/excel-function-that-evaluates-a-string-as-if-it-were-a-formula
without VBA:
Create a named range and use the named range inside the cell, I have attached the screenshots for your reference
hope this is what you required.
The Evaluate function doesn't exist in Excel anymore.
The only way you can use to evaluate properly is unfortunately only VBA.
In addition to the good answer of Durgaprasad. Here are some other ways to evaluate in the related question:
How to turn a string formula into a "real" formula
I am trying to further my knowledge in excel, I have searched around all day for an answer to my current question but I was unable to find anything relating to my needs.
I basically, want to know if it is possible to reference which column a formula should use, by storing it in a cell.
So if I have a formula which is using column - Test!C:C, am I able to store that string in a cell and reference that cell in the formula? I have many formulas which are using the same reference, so if i decide to change what column i want to utilize, it takes some time to remove them all.
I know i can use replace all, but it would be fantastic if there was a method to reference a column via a cell.
Use the Indirect Function:
If the cell in which you put the column Address "Test!C:C" was A1, you would use:
=INDIRECT(A1)
If the sheet never changed and you only wanted to reference the column. So in A1 you only want to put "C":
=INDIRECT("Test!" & A1 & ":" & A1)
Indirect lets you enter a string that is then used as a reference.
There is one major draw back to the INDIRECT() function, it is volatile. This means that it will calculate every time excel calculates, not only when the reference cells change. So depending on the number of formulas, it will slow the calculation times.
I'm doing a sheet with this
=SUM(A2:A10)
And would like to have the range be dependent on the value in cell D5.
How can I do this? I looked into CHOOSE function, but that can only handle an array of 256 values. my actual range is several hundred thousand.
I tried this, but excel complained that this won't work:
=SUM(A(Sheet1!D5):A10)
To reiterate, in my formula, I want the 2 in A2 be dependent on the number I enter in cell D5
Use the INDIRECT() Function:
=SUM(INDIRECT("A" & Sheet1!D5 & ":A10"))
I'm posting my own answer because similar posts go into VBS, and other really complex things.
I solved this with INDIRECT:
=SUM(INDIRECT("A"&D5&":A10"))
Easy-peasy!