This question already has answers here:
Meaning of two minus signs together ("double unary")
(1 answer)
Excel formula contains =+
(1 answer)
Last Row in Excel VBA Evaluate
(2 answers)
Using a VLOOKUP lookup_value that contains a formula
(2 answers)
How would I get only the numbers from excel
(4 answers)
Closed 5 years ago.
I was doing research in how to use a formula and someone provided me with the following: =SUMPRODUCT(--(YEAR(A2:A15)=2010),--(B2:B15>=50))
The person has not responded in over a week and I was wondering if anyone could explain the purpose of using the -- before the ranges? Is this in relation to using Ctrl+Shift+Enter?
-- turns a range of logical values (e.g. TRUE/FALSE) to a range of numerical values (e.g. 1/0). This is necessary in order for SUMPRODUCT to work as intended. It has nothing to do with Ctrl+Shift+Enter.
Another alternative is to use +0, e.g.
=SUMPRODUCT((YEAR(A2:A15)=2010)+0,(B2:B15>=50)+0)
In this case, not even necessary to do either. Could just do this:
=SUMPRODUCT((YEAR(A2:A15)=2010)*(B2:B15>=50))
All three of these alternatives will return the same result.
Related
This question already has an answer here:
Excel Formula IF function with return blank if there is no Data
(1 answer)
Closed 10 months ago.
My current formula is:
=IF(AC52153<C52153,"PD","C")
the cells AC52153 and C52153 are dates
I have to add an additional if statement for when the cell AC52153 is blank to state "C"
So far I have come up with
=IF(AC52153<C52153,"PD","C" IF(ISBLANK(AC52153), "C")) but this gives me the error of too many arguments.
Try the below formula
=IF(ISBLANK(AC52153), "C",IF(AC52153<C52153,"PD","C" ))
This question already has answers here:
Why can't VLOOKUP function right-to-left?
(1 answer)
Not able to apply Vlookup in Excel for elements on left side of foreign key.
(3 answers)
Vlookup limitations- want to transfer backwards
(1 answer)
Excel Formula for Inventory
(1 answer)
Closed 11 months ago.
I am trying to match value from different sheet to another sheet to get match value as per ID but when ever writing formula it does not give correct results
So Sheet 1
Name ID
Test 1
Test2 2
And Sheet 2
ID Name
2
1
2
so like to match ID column from sheet 1 and populate name in Sheet2
I tried using vlookup but not working not sure is it the right way to write as am new to excel
=VLOOKUP(B5,Sheet2!$B$5:$C$104,2,0)
I had also encountered a similar problem before but i do not remember the solution. You can take the help of these subreddit as it is a similar problem.
Link- https://www.reddit.com/r/excel/comments/jvyovz/comment/gcmz4mq/?utm_source=share&utm_medium=web2x&context=3
If this is the correct solution, happy to help.
This question already has answers here:
Excel Formula for Inventory
(1 answer)
Excel Function - If string from column A is found in Column B Then
(2 answers)
Closed 12 months ago.
I'm sure this question has been already asked a few times, but i'm about to get crazy and looking for some help...
I have an Excel Like:
Example of Problem
My question is, IF B1 is equal to one of A column, D1 should be C value which matched A th number.
Try:
=IF(COUNTIF($A$1:$A$5;B1)>0;INDEX($C$1:$C$5;MATCH(B1;$A$1:$A$5;0));"Not found")
This question already has answers here:
Concatenate percentages in Excel
(2 answers)
Closed 2 years ago.
I have a formula in 1 cell
=(A6-B6)/B6
Which results to -0.105243123560658in cell C6. A6 has the new sales amount and B6 has the old sales amount. I'm trying to get the result formatted like:
Difference is 10%
I have 2 problems
How to get the decimals turn into non-decimal number (I'm already researching on this)
How to add a text/word to a calculation result like adding "Difference is " to the (A6-B6)/B6 calculation result.
This I have tried to research and the only solution I can find involves using additional cells. Is there a way to do this with using only 1 cell ($C$6)? I tried
="Difference is "&(A6-B6)/B6
but I'm getting Difference is -0.105243123560658 instead. Also tried:
="Difference is "&($B$6-$C$6)/ABS($C$6)
You need the TEXT function:
="Difference is "&TEXT(ABS(A6-B6)/B6,"0%")
This question already has answers here:
Excel min value greater than x returns 0 if no value found?
(2 answers)
Closed 7 years ago.
I'm trying to find the smallest Value > 1 in specific Cells (H25:H36) via VBA.
I tried it with following formula:
=MIN(IF(H25:H36<=1,"",H25:H36))
but an error message pops up, saying that this formula is not correct.
Does anyone know how I could solve this problem?
=MIN(IF(H25:H36>1,H25:H36))
Entered as an array formula using Ctrl+Shift+Enter
VBA (sort of):
MsgBox Activesheet.Evaluate("=MIN(IF(H25:H36>1,H25:H36))")