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:
Related
I have a huge data set, column A and Column B as shown in figure. As you can see, the data in column A has duplicate entries. For example A2 to A5 has a value of 0.000965, corresponding to these values i have different values in B2 to B5. I want to modify the data such as i take the common value from A2 to A5 (0.000965) and average value of B2 to B5 and so on. I tried to use averageif function but it returns 0 value
Thanks in advance for your help
You can use formula =UNIQUE(A2:A12) in D4 to spill unique values, then formula =AVERAGEIF($A$2:$A$12,D2,$B$2:$B$12) in E5 and drag it down.
Or use formula =HSTACK(UNIQUE(A2:A12),AVERAGEIF($A$2:$A$12,UNIQUE(A2:A12),$B$2:$B$12)) to spill whole result at once.
Result:
Adapt ranges to your dataset.
I have a list of numbers(about 199 in all) in a column. I want to calculate absolute values of the differences between first numbers from top and bottom, second numbers from top and bottom , third numbers from top and bottom until I get to the middle. These will be written in another column next to the existing column. I need the most efficient way to do this. Please kindly help me with possible way to do this in excel.
With Excel 365 and data in A1 throught A8, in C1 enter:
=INDEX(A1:A8,SEQUENCE(4))-INDEX(A1:A8,9-SEQUENCE(4))
With any even number of values in column A, consider:
=LET(x,A1:A8, n,COUNT(x), hlf,SEQUENCE(n/2), INDEX(x,hlf)-INDEX(x,n+1-hlf))
The values in C1 through C4 are equivalent to :
A1 - A8
A2 - A7
A3 - A6
A4 - A5
EDIT#1:
To "reflect" the top rows into C5 through C8, in C5 enter:
=INDEX(C1:C4,SEQUENCE(4,,4,-1))
(You may need to wrap the C1 formula in ABS() to avoid negative values.)
I want to find a value in a row, that is, I want find "3" (which is in D4) in column B, when this value(3) has been found in B"X", D5 has to be the value of B"X+1", D6 has to be equal to B"X+2" and so on. Preferably, the solution has to be as formulas and not VBA.
Thanks by your help
Use:
=INDEX(B:B,MATCH($D$4,B:B,0)+ROW(1:1))
Put that in D5 and copy down.
In MS Excel a cell A3 contains 15-10 and A4 Contains 9-9, A5 Contains 15-2. In B3 I Want 15+(10/12), in B4 I want 9+(9/12) Similarly in B5 I want 15+(2/12). How can i do this by a formula?
Interesting format.
Nonetheless, you can use this formula, obviously replacing A1 with your particular cell:
= LEFT(A1,FIND("-",A1)-1)+RIGHT(A1,LEN(A1)-FIND("-",A1))/12
In B3 enter:
=--MID(A3,1,FIND("-",A3)-1) + MID(A3,FIND("-",A3)+1,9999)/12
and copy down
Similar to foot-inch conversion format.
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)