I need to use SUMIFS function in Excel 2007, currently my formula looks like this:
=SUMIFS(D:D,B:B,"=string",c:c,"=E")
Now the value of string is placed inside cell A3 of sheet1.
Is there any way through which i can refer that value in SUMIFS formula like sheet1!$A$3
I try following code but it didn't work:
=SUMIFS(D:D,B:B,"=sheet1!$A$3",c:c,"=E")
why don't you directly reference that cell without quotes? such as:
=SUMIFS(D:D,B:B,sheet1!$A$3,c:c,"=E")
Related
is there any way to reference in this formula =SUM(Sales[Jan]), using as a value between brackets a cell value?
What I am trying to achieve is giving this formula =SUM(Sales[a1]) where the value of the cell A1 = Jan.
I would like to do something similar in the flooring formula
index(Sales;SECUENCE(ROWS(SALES));{1\3\5})
And I would like to do something like:
index(Sales;SECUENCE(ROWS(SALES));{A1})
where A1 value = 1/3/5
You need INDIRECT() function.
=SUM(INDIRECT("Table1["&A1&"]"))
Alternatively you can use SUMPRODUCT() like
=SUMPRODUCT(Table1*(--(Table1[#Headers]=A1)))
I am trying to write a function in excel that references a range from specific cell in a column, in this example A22 or B22 to the last cell in that column. Something like this:
=MAX(IF('Sheet1'!$A$22:$A$LAST="YES",'Sheet1'!$B$22:$B$LAST))
How do I accomplish this?
Or........
=LOOKUP(1,0/(A:A="YES"),B:B)
Replace the end reference with INDEX MATCH
=MAX(IF('Sheet1'!$A$22:INDEX('Sheet1'!$A:$A,MATCH(1E+99,'Sheet1'!$B:$B))="YES",'Sheet1'!$B$22:INDEX('Sheet1'!$B:$B,MATCH(1E+99,'Sheet1'!$B:$B))))
Remember to confirm with Ctrl-Shift-Enter.
I am trying to find a non-vba solution for getting a value via vlookup. The vlookup should use the sheet name as the search criteria. The sheet name format is "00000"
=VLOOKUP(N1;[otherfilename.xlsx]othersheetname!$A$3:$C$10000;3;false)
when writing "12345" into Cell N1 it work perfectly fine
when writing in Cell N1:
=MID(CELL("filename",A1),FIND("[",CELL("filename",A1))+1,FIND("]", CELL
("filename",A1))-FIND("[",CELL("filename",A1))-6)
the Cell returns also "12345" but VLOOKUP does not work anymore.
Why is this different to straight putting a value into the Cell?
How do I solve this?
Solution:
Wrapping VALUE() around MID()
If you want to reference the location that is generated from string you should use INDIRECT() like this:
=INDIRECT("[otherfilename.xlsx]othersheetname!$A$3:$C$10000")
This will return values from the range in desired sheets.
I have the following as target:
In another workbook, I have as a data source this table:
So, using VLOOKUP formula I'm retrieving the values that I want for the cell just with formulas like that:
=CONSULTAV("user1";login.xlsx!Tabla1[#Datos];2;FALSO
CONSULTAV is the spanish formula for VLOOKUP, so I guess in english (just for better understanding as this is a english website) should be something like:
=VLOOKUP("user1";login.xlsx!Table1[#Data];2;FALSE
I want to type in the cell a simpler formula , something like:
=FindValue("user1")
So that formula calls the VLOOKUP formula and just uses the value as first argument for the VLOOKUP formula for searching the value.
Assuming the following data layout,
Select B3 and then create a defined name with the following parameters,
That formula is,
=VLOOKUP("password"&RIGHT(Sheet4!B2, 1), Table1[#All], 2, FALSE)
Now use =FindPassword in B3.
This method will always find the password associated with the user in the cell directly above it.
It is possible to dynamically change the input cell address in a formula based on the content in another cell?
Let's say I have a spreadsheet (excel or libreoffice) with these cell values:
A1: 10
A5: 9
C1: 5
Instead of hardcoding =A1-A5 , I would like to do something like this: =A1-A(C1), that would be evaluated at run time to use cell A5 for the second input.
The non-volatile¹ solution would be the INDEX function.
'for Excel
=A1-INDEX(A:A, C1)
'for OpenOffice
=A1-INDEX(A$1:A$1048576; C1)
¹ Volatile functions recalculate whenever anything in the entire workbook changes, not just when something that affects their outcome changes. Examples of volatile functions are INDIRECT, OFFSET, TODAY, NOW, RAND and RANDBETWEEN. Some sub-functions of the CELL and INFO worksheet functions will make them volatile as well.
Use INDIRECT to take the value in C1 as a pointer to the row that you want in column A:-
=A1-INDIRECT("A"&C1)
(tested in Open Office and Excel 2010)
For this kind of dynamic reference, you need the INDIRECT function. It takes two arguments INDIRECT(reference,style)
reference, a text string containing a cell, a range of cells text or a named range
and style a boolean that if omitted or TRUE, indicates that reference is A1 style, and when FALSE, the reference is using the R1C1 style.
so in your case you can use
INDIRECT("A"&C1)
or
INDIRECT("R1C"&C1,FALSE)