I am trying to count the number of letter "A" in range E6:AI6 from tab name "FINAL" in different tab name "FINAL DATA"
I basically want to look up 'FINAL'!E6:AI6, This is what I have tried:
=COUNTIF(INDIRECT("'FINAL'!E6:AI6" & E6 & ":A" & AI6),1)
but it is returning 0 always but in a particular range, there are 5 cells whose value is "A"
=COUNTIF(INDIRECT("'FINAL'!E6:AI6" & E6 & ":A" & AI6),1)
It should return 5 instead of 0 cell where I am applying above function
If I'm' understanding your question correctly, you'd like to count the occurrence of a certain string in a certain range different sheet within the same spreadsheet in Google Sheets.
I think the following should do the job:
=COUNTIF(FINAL!E6:AI6,"A")
EDIT:
Including INDIRECT would work the following way.
=COUNTIF(INDIRECT("'FINAL'!E6:AI6"),"A")
I understand that this doesn't solve the issue you've described in the comments, but I think it addresses the question asked in the initial post.
not sure which one you need but it should look something like this:
=INDIRECT(E6 & COUNTIF(FINAL!E6:AI6,"A") & ":A" & AI6)
=INDIRECT(FINAL!E6 & COUNTIF(FINAL!E6:AI6,"A") & ":A" & FINAL!AI6)
Related
I know a bit of excel and google sheets but I am struggling to find out a few things.
My goal is to have a function that outputs a line of code with a number within that is taken from a different cell.
I have a drop down that allows me to choose a character type. I have a second cell that checks what character type is selected and finds the corresponding number for said character. I would then like to take that number and be able to swap it within a line of code for the game.
A1 is the drop down with list of classes
B1 Outputs corresponding number (numbers can range from 0-1000)
C1 uses B1 number to change the game code number
C1 ---> <s16 name="mRomPawnAiNo" value="964"/ >
the 964 is what I am trying to change and match from B1
It would also be amazing if the output of C1 showed the whole code.
Things that I have tried (they might still work I was just unable to figure them out) - Replace, Substitute, ToText, Double and Triple quotation marks, using Char(34). Both figuuring out how to change just the number and displaying the code with its included < >'s ='s and " "'s is causing me problems
Figured it out. I went to far down the rabbit hole and got lost in the weeds.
Answer:
="<s16 name=" & """" & "mRomPawnAiNo" & """" &"value=""" & B1 & """" &"/>"
Here is an example of a formula I have written:
=DatabaseVerName&"."&INDIRECT(ADDRESS(4,2,1,TRUE,""&B2&"ChangeLog"))
DatabaseVerName is a named range ...It just so happens that the first word in the string (in this case Database), is the value in cell B2. I would like to be able to update the formula so that when I change the value in B2 (say to the word Report) that the formula references the named range "ReportVerName" and not "DatabaseVerName". FWIW, B2 is a a data validated list with 4 options available.
Is this possible and if so how would I do it?
I haven't tested it, but something like this might work.
=INDIRECT(B3 & "VerName") & "." & INDIRECT(ADDRESS(5,2,1,TRUE,""&B3&"ChangeLog"))
So B3 would be equal to "Database" or some other text, and would get concatenated in front of "VerName" to make up the name of a matching named range and then the remaining part of the address, which appears to have been working for you, would be added.
I haven't tested this, but I think it should work. Let us know.
I am very inexperienced with spreadsheets and can only do very basic functions and formulas. My friends and I are tracking our weight loss over the next couple of months, so we're adding our weighs daily. I'm looking for a formula where I can find the difference between our starting weights (mine begins in G8) and the most recently entered weight (my last entry will be in G67). To clarify, I would like to keep track of my progress as I go, not simply the difference between the first and final entries.
I've researched this question quite a bit, but seem to only be able to find answers for Microsoft Excel (which didn't work for Google Sheets).
I've included a link to a test spreadsheet, so you can see what ours looks like: https://docs.google.com/spreadsheets/d/1RRMsauNAnC8PVjP5ieuHQUDawN33ybzSioajfQxwf_w/edit#gid=0
You can do like this:
=arrayformula(
{"Begin", B8:H8;
"Last", {
indirect("B" & max(filter(row(B8:B67),B8:B67<>""))),
indirect("C" & max(filter(row(C8:C67),C8:C67<>""))),
indirect("D" & max(filter(row(D8:D67),D8:D67<>""))),
indirect("E" & max(filter(row(E8:E67),E8:E67<>""))),
indirect("F" & max(filter(row(F8:F67),F8:F67<>""))),
indirect("G" & max(filter(row(G8:G67),G8:G67<>""))),
indirect("H" & max(filter(row(H8:H67),H8:H67<>"")))}
;"Different",{B8:H8}-{
indirect("B" & max(filter(row(B8:B67),B8:B67<>""))),
indirect("C" & max(filter(row(C8:C67),C8:C67<>""))),
indirect("D" & max(filter(row(D8:D67),D8:D67<>""))),
indirect("E" & max(filter(row(E8:E67),E8:E67<>""))),
indirect("F" & max(filter(row(F8:F67),F8:F67<>""))),
indirect("G" & max(filter(row(G8:G67),G8:G67<>""))),
indirect("H" & max(filter(row(H8:H67),H8:H67<>"")))}})
And you must continue to additional columns after column H (include change B8:H8 to B8:~8), and if any additional row you must change number row 67 to next future Last Row number of your data
or
=arrayformula({
{"Stage";"First";"Last";"Diff"},
{B7:H7;
B8:H8;transpose(
query(split(
query(transpose(
query(text(row(A8:A66)*not(isblank(B8:H66)),"0000") & ":" & B8:H66,
"Select " & join(",","max(Col" & column(B7:H7)-COLUMN(B7)+1 & ")"))
),"Select Col2"),":",true,false),"Select Col2"));
B8:H8-transpose(
query(split(
query(transpose(
query(text(row(A8:A66)*not(isblank(B8:H66)),"0000") & ":" & B8:H66,
"Select " & join(",","max(Col" & column(B7:H7)-COLUMN(B7)+1 & ")"))
),"Select Col2"),":",true,false),"Select Col2"))
}})
I have to make a conditional formating formula with cross-sheet references.
Basically I have many sheets, one with existing words, and another one with words we have to add. I want to highlight in "Feuille 6" the words that are already in "Existant". I tried many formulas, I read the doc, I still can't figure it out.
Quick edit : equiv = match, and ligne = row, it's just google sheet translating words into French..
Here's the formula I think I should use, but it's not working
=EQUIV(A,indirect("Sheet1!A"&LIGNE()))
Here's what the Feuille 6 looks like
Again, there should be highlighted words in Feuille 6, like " Action ", which already exists in the sheet " Existant ".
I tried replacing "Sheet1 "with "Existant" too.
Any tip please?
Thanks !
Try:
Assuming the sheet Existant has values in columns A to Z , and you are highlighting cells in column A
=countif(indirect("Existant!A:Z"), A1)
What I did is pseudocode basically and I just want to specify the sheet using a cell as shown in the picture. What is the proper notation (if there is any)?
(Trying to solve E3 in this example. It should show a number from another sheet, and I just want to make it easy to copy/paste down column E by referencing to the sheets using the strings in column A)
You can use INDIRECT() function to do that, for example :
=INDIRECT(A3 & "!B4")
You may need to wrap sheet name with quotes if it contains special character(s) :
=INDIRECT("'" & A3 & "'!B4")