Here is perfectly working formula I have combines with the help of Alistair McEvoy and idfurw:
=HYPERLINK(VLOOKUP(A4,IMPORTRANGE("1RnkAkydjc_wY_iLyyfktUucvi9MHmneVTL9H9J3bgss/","08/16!A2:Q26"),6), VLOOKUP(A4,IMPORTRANGE("1RnkAkydjc_wY_iLyyfktUucvi9MHmneVTL9H9J3bgss/","08/16!A2:Q26"),9))
However, I want to update it. Especially this part: "08/16!A2:Q26" from above formula.
How do I re-write formula so that instead of 08/16 would be value from cell A1. Cell A1 contains 08/16 (date format).
This formula gets me data from different unopened google sheet. Unopened spreadsheet contains sheet named 08/16 where data should be extracted from.
I tried this combination but it did not work:
=HYPERLINK(VLOOKUP(A4,IMPORTRANGE("1RnkAkydjc_wY_iLyyfktUucvi9MHmneVTL9H9J3bgss/",INDIRECT("'"&TEXT($A$1,"MM/dd")&"'!A2:Q26"),6), VLOOKUP(A4,IMPORTRANGE("1RnkAkydjc_wY_iLyyfktUucvi9MHmneVTL9H9J3bgss/",INDIRECT("'"&TEXT($A$1,"MM/dd")&"'!A2:Q26"),9))
Probably I am doing mistakes with ' and "
So I want to transform "08/16!A2:Q26" into --> "08/16!A2:Q26" but instead of 08/16 will be value from A1 cell. A1 cell value is 08/16
try:
=HYPERLINK(
VLOOKUP(A4,
IMPORTRANGE("1RnkAkydjc_wY_iLyyfktUucvi9MHmneVTL9H9J3bgss/",
A1&"!A2:Q26"), 6), VLOOKUP(A4,
IMPORTRANGE("1RnkAkydjc_wY_iLyyfktUucvi9MHmneVTL9H9J3bgss/",
A1&"!A2:Q26"), 9))
or:
=HYPERLINK(
VLOOKUP(A4,
IMPORTRANGE("1RnkAkydjc_wY_iLyyfktUucvi9MHmneVTL9H9J3bgss/",
TO_TEXT(A1)&"!A2:Q26"), 6), VLOOKUP(A4,
IMPORTRANGE("1RnkAkydjc_wY_iLyyfktUucvi9MHmneVTL9H9J3bgss/",
TO_TEXT(A1)&"!A2:Q26"), 9))
Related
How can i check if the value in Column A2 or B2 exists in Column C2, D2, or E2? I would like to highlight the value that is present more than once in the row.
Here is an example spreadsheet. link to spreadsheet
You can go to Format => Conditional Formatting
The parameters are the following:
range: A2:E4
format rules: custom formula
formula: =COUNTIF($A2:$E4, INDIRECT(ADDRESS(ROW(), COLUMN(), 4))) > 1
The formula will highlight the duplicated values by row. The result can be seen below:
One more option without using INDIRECT:
=ArrayFormula((OR(--(TRANSPOSE($A2:$B2)=$C2:$E2))*OR(A2=$A2:$B2)))
I'm having trouble trying to run a VLOOKUP query in Google Sheets. I'm trying to see if a value already exists in a given column. However, I need to sanitize the inputs since the provided numbers have 9 digits, and the inputs have 12. For example,
Cell A1 - Given Value - 123456789
Cell B1 - Inputs --------- 999123456789
I get the needed value from the input using the RIGHT Function taking the last 9 values
Cell C1 - =RIGHT(B1,9)
Then run the VLOOKUP function
Cell D1 - =VLOOKUP(C1,B:B,1,0)
The result in get in Cell D1 is:
N/A. The error I get is "Did not find 123456789 in the VLOOKUP evaluation"
I'm not sure what I'm doing wrong here since this formula works correctly in Excel.
the issue is that RIGHT converts number to text string
the solution is:
=VLOOKUP(C1*1, A1, 1, 0)
and here you can see what's going on:
or directly:
=VLOOKUP(RIGHT(B1, 9)*1, A1, 1, 0)
but if you just want to check if partial number is present in full number you can do:
=REGEXEXTRACT(B1&"", A1&"")
and ArrayFormula of that would be:
=ARRAYFORMULA(IF(A1:A<>"", IFERROR(REGEXEXTRACT(B1:B&"", A1&""), "no"), ))
If A1 has a value of 2, =INDIRECT("L"&(5+A1)) will return me cell L7's content. And my A1 value keeps on being updated.
But I need a way to sort through columns instead of rows, like
L7, M7, N7, O7 and so on...
Which formula can help me sort through the columns? I also know that =COLUMN() returns the current column converted to number, but I had no luck with =INDIRECT((column()+A1)&7).
You can use the address() function inside indirect. Address() returns a cell reference as a string. So for example, if you enter in G5
=indirect(address(A1, column()))
while A1 is 1 the above formula will return the contents of cell G1.
See if this helps?
I have the following sheet (link). What formula would yield the itemized sums in B2, C2, and D2?
To calculate the value in B2, the formula should check cells B5:B10 and sum the corresponding values from A5:A10 for non-blank cells. Hence: 30+45+30=105.
I have tried ARRAYFORMULA(IF(B5:B10 != ""), sum(A5:A10)) which results in Formula parse error.
Considering that the numbers in column B are not to used (thats what i figured out from your example).
you can use sumIf:
=SUMIF(B5:B10,">0",A5:A10)
so this will check if the cell in column B is greater than 0, then it will add its corresponding value from column A.
please note that if you put a character in the B column the SUMIF will not consider it because we are using ">0" as criterion, instead use ISBLANK.
hope it helps.
We have a Google Sheet doc which contains a date column with each date as a row value, and also multiple columns (some of which have the same name) and we want to sum the values in the cells where the row is a specific date, and the column has a specific header. For example where the date is 01/03/2017 we want to sum all the values which have the column header "X" on that date. Can this be done?
Yes it can be done
=SUMIF($C$3:$J$3,"X",OFFSET(C3:J3,MATCH(B1,B4:B15,0)+3,0))
Broken down
=sumif($C$3:$J$3 [<-header row with X],"X" [<-what we're looking for],C3:J3 [<-row to sum])
the formula above will sum the header row if there is an "X" (not very useful)
I used offset(C3:J3,[row number],0) with the header row range to push it down to the row matching 01/03/2017
To get the row number of 01/03/2017 I used Match() and put 01/02/2017 in cell B1
MATCH(B1,B4:B15 [range of dates] ,0)
I add 3 becuase my range starts at 4
You can hard code the date into the formula by replacing B1 with
DATEVALUE("01/03/2017")
I've not tried this in Google Sheets as I don't have access at the moment but it works in Excel and I'll try it in Sheets later.
Here's the formula that you can paste into A2 on your sheet "Sum of Data"
=SUMIF(Data!$B$1:$J$1,B$1,OFFSET(Data!$B$1:$J$1,MATCH($A2,Data!$A$2:$A,0),0))
It's all about changing the original formula to match your data and also locking the ranges correctly with the $ so that it will autofill down and across without breaking.
Use INDEX to peel off the appropriate column for SUMIF.
=SUMIF(A:A, G4, INDEX(A:E, 0, MATCH(H4, 1:1, 0)))
Considering a sheet where:
Cell B1 contains the date of interest (e.g. 01/03/2017)
Cell B2 contains the header of interest (e.g. X)
Cell B3 returns the sum of interest (values of all columns with header "X" on 01/03/2017)
Row 4 contains the headers to be evaluated (e.g. "Date", "A", "B", "X", "C", "X", "D")
Subsequent rows contain the actual data (e.g. dates in column A and data in columns B:G)
Refer to the image on the link below for details:
Example with cells of interest highlighted in yellow
The following formula should return the expected result:
=SUMIF(4:4,B2,INDEX(A:G,MATCH(B1,A:A,0),0))
I used Google Sheets in Portuguese. So, the formula actually tested was:
=SOMASE(4:4;B2;ÍNDICE(A:G;CORRESP(B1;A:A;0);0))
I hope that was usefeul.