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"
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))))
Is there a way that I can get all the cells that contain "Student" along with the cell that's below it and put it in another table next to each other?
Maybe this picture will illustrate my problem better:
The main problem is to simply look in a column all the cells that contain "Student" and get the cell right below it too (discard everything else).
Will the best approach be to use VLOOKUP() or the SEARCH(), I'm struggling to create a formula for this small task. Any help would be greatly appreciated.
Just HSTACK two filters, the second with and offset range:
=HSTACK(
FILTER(A3:A17,ISNUMBER(SEARCH("Student",A3:A17))),
FILTER(A4:A18,ISNUMBER(SEARCH("Student",A3:A17))))
^^^^^^Note the offset
With irregular spacing:
This answer is based on your previous thread, I can update the formula's if needed but I am guessing this example above is just an example?
This will require a helper column to my understanding, in order to trim out the fat.
B1
=IFERROR(FILTER(FILTER(A1:A1000,NOT(ISNUMBER(FIND("titanium",A1:A1000)))*NOT(ISNUMBER(FIND("beagle",A1:A1000)))*NOT(ISNUMBER(FIND("legend",A1:A1000)))*NOT(ISNUMBER(VALUE(LEFT(A1:A1000,FIND(".",A1:A1000)-1))))),FILTER(A1:A1000,NOT(ISNUMBER(FIND("titanium",A1:A1000)))*NOT(ISNUMBER(FIND("beagle",A1:A1000)))*NOT(ISNUMBER(FIND("legend",A1:A1000)))*NOT(ISNUMBER(VALUE(LEFT(A1:A1000,FIND(".",A1:A1000)-1)))))<>0),"")
C1 Required to be dragged down for X number of cells
=IFERROR(INDEX(FILTER(IFERROR(LEFT(RIGHT($B$1:$B$1000,LEN($B$1:$B$1000)-FIND("/",$B$1:$B$1000)),LEN(RIGHT($B$1:$B$1000,LEN($B$1:$B$1000)-FIND("/",$B$1:$B$1000)))-1),$B$1:$B$1000),IFERROR(LEFT(RIGHT($B$1:$B$1000,LEN($B$1:$B$1000)-FIND("/",$B$1:$B$1000)),LEN(RIGHT($B$1:$B$1000,LEN($B$1:$B$1000)-FIND("/",$B$1:$B$1000)))-1),$B$1:$B$1000)<>0),ROWS(C$1:C1)*2-1),"")
D1 Required to be dragged down for X number of cells
=IFERROR(INDEX(FILTER(IFERROR(LEFT(RIGHT($B$1:$B$1000,LEN($B$1:$B$1000)-FIND("/",$B$1:$B$1000)),LEN(RIGHT($B$1:$B$1000,LEN($B$1:$B$1000)-FIND("/",$B$1:$B$1000)))-1),$B$1:$B$1000),IFERROR(LEFT(RIGHT($B$1:$B$1000,LEN($B$1:$B$1000)-FIND("/",$B$1:$B$1000)),LEN(RIGHT($B$1:$B$1000,LEN($B$1:$B$1000)-FIND("/",$B$1:$B$1000)))-1),$B$1:$B$1000)<>0),ROWS(D$1:D1)*2),"")
B1 will filter the data, and cells C1 and D1 will strip out the text you are looking for.
I know am late to the party, but you can try this something along the lines using TAKE(), TRANSPOSE() & WRAPCOLS()
• Formula used in cell C3
=TAKE(TRANSPOSE(WRAPCOLS(A3:A17,5)),,2)
Note: This works if the spacing is consistent.
For Irregular Spacing using XLOOKUP(), FILTER() & HSTACK()
• Formula used in cell H3
=LET(_Student,FILTER(F3:F17,ISNUMBER(SEARCH("Student",F3:F17))),
HSTACK(_Student,XLOOKUP(_Student,F3:F17,F4:F18)))
I have the formula below which checks cell C6 and if C6="Yes", formula will return "X".
IF(C6="Yes","X","")
I now want this formula to concatenate the value of Cell C5 to string "X" only when the C6="Yes". How can I formulate this?
Thanks in advance!
Like this, using & to concatenate:
IF(C6="Yes","X"&C5,"")
As an addendum to Scott's answer, depending on your purpose you can also use CONCAT or TEXTJOIN. For instance:
=IF(C6="Yes",CONCAT("X",C5),"")
...or...
=IF(C6="Yes",TEXTJOIN(" ",TRUE,"X",C5),"")
If C5 is "example", these would result in "Xexample" and "X example", respectively. As Plutian mentioned, this is particularly useful if you're going to have more entries. TEXTJOIN is particularly useful if you're trying to make a sentence or concatenate an address separated by commas. It can also ignore blank cells, which can be handy.
Have some problems with one of my formulas in excel.
I have an array of dates, and I want to find if any of them can be found in a cell.
E.g.
C D F G H I J
1 #01/31 #01/30 #01/29 #01/28 #01/27 #01/26 #01/25
And I have my cell A1 containing text: "I want to meet you #01/29"
I get the result I want if I do:
=IF(AND(IFERROR(SEARCH($C$1,A1,1),0)
for each and every of C-J
I would like somthing like
=IF(AND(IFERROR(SEARCH($C$1:$J$1,A1,1),0)
But above do not give anything.
Please help me.
What I want is one formula where I can see if the different dates in C1:J1 can be found in a sentence found in A1.
Two possibilities....
An "array formula"
=IF(COUNT(SEARCH(C1:J1,A1)),1,0)
confirmed with CTRL+SHIFT+ENTER, or a non-array version
=IF(SUMPRODUCT(ISNUMBER(SEARCH(C1:J1,A1))+0),1,0)
You may consider using Match(). It works really well with ranges.
Something like this:
=IFERROR(MATCH(A1,C1:J1,0),0)
Match MSDN
Try this for the wildcard:
=IFERROR(MATCH("*" & A1 & "*", C1:J1 &"", 0), 0)
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",""))),"")