Finding smallest value greater 1 in excel [duplicate] - excel

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))")

Related

I am trying to add an additional If statement alongside an isblank statement. But i get a too many arguments message [duplicate]

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" ))

Excel: IF clause for full column matches [duplicate]

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")

Excel 2010 vlookup #n/a error while value exists [duplicate]

This question already has an answer here:
Excel VLOOKUP where the key is not in the first column
(1 answer)
Closed 12 months ago.
I am trying to use :
VLOOKUP to get the value of the ID colum in the below image :
The formula returns #N/A error although the value exists!
The formula I am using is :
=VLOOKUP(J13,$C$2:$D$10,1,FALSE)
Need help resolving this please.
Thanks.
Use index() with match().
Vlookup() only works to the right of the indexing column.
So:
=index(C2:C10,match(J13,D2:D10,0))
Or you could do the lazy solution of swapping col C with Col D, but other formulae you have may then fail...

Formula Explanation Excel 2016 "--" [duplicate]

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.

Excel Formula to add text/word to a percentage result [duplicate]

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%")

Resources