HI i am trying to write the IF function like this.
=IF(AND(E3="Epyllion",J3="7"),".70","")
But result always shows 0 instead of .70.
My point for this function is,
IF E3="Epyllion" AND J3="7" Then .70 AND IF E3="Epyllion" AND J3="5" Then ".72" AND IF E3="Epyllion" AND J3="3" Then ".80"
Can someone help me to write this formula.
The following formula works for me.
IF(AND(E3="Epyllion",J3=7),70,IF(AND(E3="Epyllion",J3=5),72,IF(AND(E3="Epyllion",J3=3),80,"NULL")))
Try this formula in F2 cell
=IF(AND(E2="Epyllion",J2=9),".90",
IF(AND(E2="Epyllion",J2=7),".70",
IF(AND(E2="Epyllion",J2=5),".50",
IF(AND(E2="Epyllion",J2=3),".30",""))))
Your formula should have been
=IF(AND(E3="Epyllion",J3=7),".70","")
unless Cell J3 is formatted as text.
With all the conditions mentioned in the question formula can be written as
=IF(E3="Epyllion",IF(J3=7,".70",IF(J3=5,".72","0.8")))
provided you just have 7,3,5 for Cell J3. If you have more than these three values then use
=IF(E3="Epyllion",IF(J3=7,".70",IF(J3=5,".72",IF(J3=3,".80",""))),"")
Related
Is there a way to calculate the count of items in a range, that are a formula?
I'm only expecting =TEXT formulas, so I tried =COUNTIF(1:1, "=TEXT"), but that didn't work. Seems CountIf only operates with the displayed values of the cells.
If I have understood your post clearly, specifically you need those functions which starts TEXT() then perhaps you could try :
• Formula used in cell F6
=SUM(N(IFERROR(LEFT(FORMULATEXT(D6:D19),6)="=TEXT(",0)))
If you have the following in cells A1:A5
=TEXT("493","DDD")
555
=TEXT("420000","YYYY")
Yep
Nope
Either of these formulas should give a result of 2
Counts formulas
=SUMPRODUCT(--ISFORMULA(A:A))
Counts Cells with Formula Text
=SUMPRODUCT(--ISNUMBER(SEARCH("text(",FORMULATEXT(A:A))))
I have it in my cells A5:
A:E
and in my cell B6, I have it :
3
I try to say in other cells :
A3:E3
to select all row from A3 to E3
I tried to use Concat with excel but it put me error
thanks for reading me
EDIT
Is this what you are trying to achieve, as BigBen Sir, rightly mentioned you need INDIRECT Function
=INDIRECT(LEFT(A5)&B6&":"&RIGHT(A5)&B6)
If you dont want to use INDIRECT Function as just show as A3:E3, then simply,
=LEFT(A5)&B6&":"&RIGHT(A5)&B6
An INDEX/INDIRECT Combination
This looks like the most 'elegant' solution to me:
INDEX(INDIRECT($A$5),$B$6,) ' short for INDEX(INDIRECT($A$5),$B$6,0)
Credits should also go to P.b, who figured it out earlier in the comments.
It took me a while since I started with the wrong formula INDEX(INDIRECT($A$5),$B$6) ignoring the column argument.
Only when I realized that =COLUMNS(INDIRECT($A$5)) returned 5, I got back to INDEX and figured it out.
Here are a few examples of how you can utilize it:
=COUNT(INDEX(INDIRECT($A$5),$B$6,))
=SUM(INDEX(INDIRECT($A$5),$B$6,))
=AVERAGE(INDEX(INDIRECT($A$5),$B$6,))
Try:
=LEFT(A1;FIND(":";A1)-1)&A2&RIGHT(A1;FIND(":";A1))&A2
A2 contains "3", A1 contains "A:E"
I have the following data in C4:D10 as input. Cell G4 has the formula =UNIQUE(C4:C10), Cell H4 has the formula =TEXTJOIN(", ",TRUE,IF($C$4:$C$10=G4,$D$4:$D$10,"")), and Cell H5 has =TEXTJOIN(", ",TRUE,IF($C$4:$C$10=G5,$D$4:$D$10,"")).
The values in H4 and H5 are what I need: they combine the texts for each category. However, I would prefer to write one array formula by TEXTJOIN and over G4#. I tried =TEXTJOIN(", ",TRUE,IF($C$4:$C$10=G4#,$D$4:$D$10,"")), it did not work well.
Does anyone know how to write such one formula over G4# to achieve the same values?
PS: formulas with LAMBDA and helper functions will still be appreciated if there is no other choice.
You could achieve this with the formula below:
=LET(data,FILTER(C:D,C:C<>""),
dataC1,INDEX(data,,1),
dataC2,INDEX(data,,2),
UdataC1,G4#,
v,UNIQUE(TRANSPOSE(IF(dataC1=TRANSPOSE(UdataC1),dataC2,"")),1),
seqrv,SEQUENCE(ROWS(v)),
sep,", ",
x,MMULT((LEN(v)+LEN(sep))*(v<>""),SIGN(SEQUENCE(COLUMNS(v))))-LEN(sep),
y,MMULT(--(TRANSPOSE(seqrv)<seqrv),x+LEN(sep)-1)+seqrv,
IFERROR(MID(TEXTJOIN(sep,1,v),y,x),""))
Or you can spill it all in one go using:
=LET(data,FILTER(C:D,C:C<>""),
dataC1,INDEX(data,,1),
dataC2,INDEX(data,,2),
UdataC1,UNIQUE(dataC1),
v,UNIQUE(TRANSPOSE(IF(dataC1=TRANSPOSE(UdataC1),dataC2,"")),1),
seqrv,SEQUENCE(ROWS(v)),
sep,", ",
x,MMULT((LEN(v)+LEN(sep))*(v<>""),SIGN(SEQUENCE(COLUMNS(v))))-LEN(sep),
y,MMULT(--(TRANSPOSE(seqrv)<seqrv),x+LEN(sep)-1)+seqrv,
join,IFERROR(MID(TEXTJOIN(sep,1,v),y,x),""),
CHOOSE({1,2},UdataC1,join))
with lots of help from this answer from Mark Fitzpatrick
I need some help in writing a formula in excel with data from the cell H2 as 'x' and O2 as 'n' for the following equation.
x/1!+x^2/2!+x^3/3!+.....+x^n/n!
Is there a way to write a formula for this in excel and update a cell with resultant data?
Formula in C2 is
{=SUM($A2^ROW($A$1:INDEX($A:$A,$B2))/FACT(ROW($A$1:INDEX($A:$A,$B2))))}
This is an array formula. Put it into the cell without the curly brackets and then press [Ctrl]+[Shift]+[Enter] to finish.
Edit:
prepared for copying downwards
ROW($A$1:INDEX($A:$A,$B2)) = {1;2;3;...;n} with $B2 = n
i think you are trying to achieve this:
=(H2)/FACT(1)+(H2^2)/FACT(2)+(H2^3)/FACT(3)+....+(H2^O2)/FACT(O2)
hope it solves it.
How can I simplify this with VLOOKUP or LOOKUP?
IF(OR(A1=1,A1=2,A1=3,A1=4,A1=5,A1=6,A1=7),"Yes","No")
is there any way to make it more robust using VLOOKUP or any other Excel function to avoid this many or conditions?
Basically that OR condition is the same as A1<8 so just do that and get rid of the OR.
=IF(A1<8,"Yes","No")
in this example i have a list in Sheet 2 in the A column that contains all the values. In sheet 1 in cell A1 I enter the test number and you can put this formula in any cell you want
=IF(LOOKUP(A1,Sheet2!A:A,Sheet2!A:A)=A1,"Yes","No")
A bit better:
=IF(ISERROR(FIND("|"&A1&"|", "|1|2|3|4|5|6|7|")), "No", "Yes")
Assumes no one ever puts "|" into A1
This is the same:
=IF(AND(A1>0,A1<8,INT(A1)=A1),"Yes","No")
If I'm understanding correctly, you have a value in cell, say A1, and a variety of other values in cells B1:B8 and you'd like to know whether A1 matches any value present in B1:B8.
You could set up a flag variable taking value 1 if a match is found and 0 if not as follows:
=1-ISNA(MATCH(A1,B1:B8,0))
Alternatively, you could do something like:
=IF(ISNA(MATCH(A1,B1:B8,0)),"No","Yes") to output something more similar to the above.