I am trying to write a formula using IFTEXT on google sheets. What needs to happen is if there no text in the I column, then it will say "Not yet."
If there IS text in the I column but not the K column, it still needs to say "Not yet".
However, if there is text in both the I and K columns, it needs to say "yes".
I have this figured out and working with this formula:
=IF(ISBLANK(I2),"Not yet",IF(AND(ISTEXT(I2),ISTEXT(K2)),"Yes","Not yet"))
Now comes the issue - if there is text added to the "Q" column, I need it to change and say "Done". I tried the formula:
=IF(ISBLANK(I2),"Not yet",IF(AND(ISTEXT(I2),ISTEXT(K2)),"Yes","Not yet", IF(ISTEXT(Q2), "Done"))
But this returned a message saying
"#NA - Wrong number of arguments to IF. Expected between 2 and 3
arguments, but got 4 arguments."
I feel like I have tried everything to get around this but I can't figure it out. Please help!
If I have understood the logic correctly, the flow is as follows:
I2 is text & K2 is text & Q2 is text ---> Done
I2 is text & K2 is text but Q2 is not text ---> Yes
I2 is text but K2 is not text (Q2 does not matter) ---> Not yet
I2 is not text (K2 and Q2 do not matter) ---> Not yet
If this is the logic you are trying to code then this formula shuld work:
=if(istext(I2),if(istext(K2),if(istext(Q2),"Done","Yes"),"Not yet"),"Not yet")
Related
I have test from my college data master
enter image description here
and the question are :
focus on row no 1 formula, the rest can be copied from no 1
use round for column E, and MOD for column F
Next process amount is multiply by 10 if remain not 0
Decimal column filled with "." if remain is not zero and iteration on no 1
Use concatenate for final result by forming the final result of previous row and result of current row
The result must be
enter image description here
what a formula for final result
I have try to answer like this
enter image description here
with formula =CONCATENATE(ROUND(G$2/$B$2,D2),)
but still not same for expected outcome
in I3 use:
=JOIN(; E3; H3)
in I4 use:
=JOIN(; E$3; H$3; E$4:E4)
and drag down...
same as my above;
in excel u can use this
in i3
=TEXTJOIN("";FALSE;E$3;".")
in i4
=TEXTJOIN("";FALSE;E$3;".";E$4:E4)
E$4 fixed positions and when u drag down the E4 will expand its self to be E5 etc. it's little tricky. i get the same test as u but i not finished yet lol but im very curious about that. thats why i found the trick by my self lol. its take time for me to remember the excel formula
Pic
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 & """" &"/>"
Suppose my excel sheet looks like this:
Name
Houses
Cars owned
column D
John
3
3
=A&MAX(30,3)
Harry
2
4
..
Vik
5
1
..
..
p
k
..
...
q
n
..
In column D, I want to return the row in column A that corresponds to the larger of the two values in cells B2 and C2. So in cell D2, I would want to return "Vik" because the larger of the two values in B2 (3) and C2 (3) is 3. And the value in cell A3 is Vik.
So in order to arrive at my result, I would input something like ="A"&MAX(B2,C2) in D2.
But suppose my formula was a lot more complex and with different data.
=IFERROR(ArrayFormula(ADDRESS(MAX(index(IF($A$1:$D6=B7,ROW($A$1:$D6),""),,IF($A$1:$D6=B7,COLUMN($A$1:$D6)),"")),MAX(IF($A$1:$D6=B7,COLUMN($A$1:$D6),"")))),"")
and I wanted the result of the first chunk of the formula (from ADDRESS() onwards)
MAX(index(IF($A$1:$D6=B7,ROW($A$1:$D6),"") (which is 3, say) to be the row number that is input into
MAX(IF($A$3:$D3=B7,COLUMN($A$1:$D6),"")) for the range inside the IF condition.
(notice how $A$1:$D6 changed to $A$3:$D6)
So, going by the tabular example above, I would simply input MAX(IF("$A$"&MAX(index(IF($A$1:$D6=B7,ROW($A$1:$D6),""):$D6=B7,COLUMN($A$1:$D6),"")) and that should do the trick. Except it doesn't and I get a formula parse error which I cannot resolve.
Here is the specific excel sheet I'm working on: https://docs.google.com/spreadsheets/d/12U8U7Jp4FscobIvgr4_sADJB_oSdIHrboCk02cxF_u0/edit?usp=sharing
Can anyone see what I'm doing wrong? The solution, I think, should be simple enough but I can't seem to figure it out.
Sorry if it's a bit long but I've been struggling with this for a while now.
I hope this formula will help
=ARRAYFORMULA(IFNA(VLOOKUP(QUERY(TRANSPOSE(QUERY(TRANSPOSE(B2:C6);"select "&JOIN(",";"max(Col"&row(B2:C6)-1&")")));"select Col2+1 label Col2+1''");{row(A:A)\A:A};2;False)))
Solved using the indirect function and ampersand concatenation.
New function would be: =IFERROR(ArrayFormula(ADDRESS(MAX(index(IF($A$1:$D6=B7,ROW($A$1:$D6),""),,IF($A$1:$D6=B7,COLUMN($A$1:$D6),""))),MAX(IF(INDIRECT("$A$"&(MAX(index(IF($A$1:$D6=B7,ROW($A$1:$D6),""))))):$D6=B7,COLUMN($A$1:$D6),"")))),"")
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)
I'm trying to CONCATENATE two cells in order to compare the results so that I can search by them, however the values of the two CONCATENATE outputs are different as one inputs is coming from the another formula.
Screen shots attached
I'm basically trying to compare the start time and channel number from A and B, with the data from G and H, so that I can update D with the relevant information in F (in the same format as A).
I first convert the EPOC time to human time readable, but when i try and CONCATENATE with the channel number, I get a different value to when i do that with A and B.
formula for c2 =CONCATENATE(A2,B2)
formula for i2 =G2/86400000+date(1970,1,1)
formula for k2 =CONCATENATE(G2,H2)
As you can see, the values for c2 and k2 are different event though a2 and i2 are the same (looking).
I've tried using CELL, INDEX, and INDIRECT but just can't seem to get it right, and I've tried various formatting options
Hopefully i've explained this right. Any solution welcome
raw data csv here START ,CHANNEL,concat,end?,,EndDateTime epoc,startDateTime epoc,channel,converted start,converted end,concat
12:58:00 AM,10,,,,1520391600000,1520382480000,7,,,
12:28:00 AM,7,,,,1520395200000,1520384280000,10,,,
So you have a couple of issues here.
CONCATENATE(A2,B2) will never equal CONCATENATE(I2,H2) because the values in A2 (12:58) and B2 (10) do not equal the values in I2 (12:28) and H2 (7). I think you meant to compare A2,B2 to I3,H3
A2 (12:58) does not equal I3 (12:58). You'll see this for yourself if you convert both to the date or number formats. The date value of A2 is 12/30/1899, the default when you enter only a time in the cell. The date value of I3 is 3/7/2018, because you converted the exact date and time from the EPOCH value.
For the two concatenations to equal each other, you need to resolve the issues above. You can do this by adding a date to column A's values.
On another note, I think there are better ways of populating column D based on the data in column F. A simple Vlookup should do the trick, once you resolve issue #2 above.