My excel image:
At E6 cell, I used this formula:
=countifs(Example1!$L$19:$L$1000;$B$6;Exampale1!$M$19:$M$1000;$C$6)
And at F6 cell, i used this formula with C8 cell contains the sheetname that I want to refer:
=countifs('INDIRECT(C8)'!$L$19:$L$1000;$B$6;'INDIRECT(C8)'!$M$19:$M$1000;$C$6)
why are there 2 different returned results?
As expected, I want F6 will return as E6.
I tried to search but nothing can resolve.
That's not how indirect works.
Replace the formula in F6 as follow.
=COUNTIFS(INDIRECT("'"&C8&"'!"&"$L$19:$L$1000"),$B$6,INDIRECT("'"&C8&"'!"&"$M$19:$M$1000"),$C$6)
Related
I want the text in my cell to be my input for VLOOKUP.
Let's say B3:D10 is written in cell E5.
So, I want to refer to cell E5 and get the range B3:D10, not the value itself.
I used the following formula =VLOOKUP(E4,E5,8,0) but it reads E5 as the table array.
I also tried =VLOOKUP(E4,text(E5,0),8,0) but turns out as #Value! error.
i think you have few mistakes. Range B3:D10 has only 3 columns so you can not set col_index_num to 8 because will cause an error.
See the image please:
E5 - Yellow area is the range B3:D10
E4 the text to search for
G3 hase the below formula:
=VLOOKUP(E4,INDIRECT(E5),2,0)
Tips:
Fix the range you search using "$". Example: $B$3:$D$10
Use IFERROR to avoid error if search value not appear in range
=IFERROR(VLOOKUP(E4,INDIRECT(E5),2,0),"Value not appear in range")
Hello I need to make a sumproduct with general conditions.
The correct values is shown in cell B6, B7 and B8
In cell B6 I have this formula =A1*A2+B1*B2+C1*C2 to understand what is the result that I expected.
In B7 is =D1*D2+E1*E2 and so on...
I've tried with this formula =SUMPRODUCT(A3:G3=A6,A1:G1,A2:G2) in cell B6 but the result is 0.
Use =SUMPRODUCT(1*(A3:G3=A6),A1:G1,A2:G2) in cell B6.
Better still use =SUMPRODUCT(1*(A$3:G$3=A6),A$1:G$1,A$2:G$2)
and you will be able to copy the formula from B6 to B7:B8 and it will behave as you want.
From this page, I learned that "--" can transform True and False values into 1's and 0's.
That's probably why you are getting 0, the formula you use adds boolean values to numerical values.
So the formula you are looking for in cell B6 is =SUMPRODUCT(--(A3:G3=A6),A1:G1,A2:G2).
Tested on Excel 2010, it worked.
I am trying extract data based on matching 2 cells. Can anyone help me with the formula?
For Example: If data in C1 = B3 then
Populate
b4 c4
b5 c5
b6 c6
...
=IF(AND(C1=B3,C1<>""),1,0)
Without knowing what values you want in the populated cells I'm not sure how to answer... however the basic formula is above...
and example image below:
This is a very basic example.
What is in A3 and A4 are the formulas that are in B3 & B4 respectively.
I want the value in B4 to be "ValueB2"(the value from B2)
I basically want to control the formula in B4 with a value from another cell(C4)
Can this be done or how do I do it?
=INDIRECT(CONCATENATE("b",C4))
this in B4 works
The INDIRECT function seems to be what you would want to use for this based on your description.
http://office.microsoft.com/en-us/excel-help/indirect-function-HP010062413.aspx
I am trying to seperate a field into two by finding the values that are in the left of an asterisk and then what's on the right.
For example
Cell C1 is 0A*33 then C2 should be 0A and C3 should be 33.
I have the following formulas in cells C2 and C3:
=LEFT(C1,SEARCH("~*",C1,1)-1)
=RIGHT(C1,LEN(A3)-SEARCH("~*",C1,1))
These formulas work great as long as there is a asterisk in the cell, if not it results in a #VALUE! error.
I have even tried (For the left side) =LEFT(C1,IF(ISERROR(SEARCH("~*",C1,1)-1),C1,SEARCH("~*",C1,1)-1)) with the same outcome.
If the cell does not have an asterisk it must return the whole value in C2 and nothing in cell C3.
Have you tried:
In C2:
=IF(ISERROR(FIND("*",C1)),C1,LEFT(C1,FIND("*",C1)-1))
In C3:
=IF(ISERROR(FIND("*",C1)),"",RIGHT(C1,LEN(C1)-FIND("*",C1)))
You could use the same idea with SEARCH, but FIND works fine in this case:
In C2:
=IF(ISERROR(SEARCH("~*",C1,1)),C1,LEFT(C1,SEARCH("~*",C1,1)-1))
In C3:
=IF(ISERROR(SEARCH("~*",C1,1)),"",RIGHT(C1,LEN(C1)-SEARCH("~*",C1,1)))
=LEFT(C1,FIND("*",C1&"*")-1)
=MID(C1,FIND("*",C1&"*")+1,255)