ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   excel formula (https://www.excelbanter.com/excel-worksheet-functions/261234-excel-formula.html)

Brian

excel formula
 
Does anyone know how to create a cell that will calculate whether the number
in the orginal cell is above or below 40. If above 40 it will calculate at
$69.00 for anything over if below it will calculate at $46.00.

Thanks in advance

T. Valko

excel formula
 
You account for anything less than 40 and anything greater than 40 but what
if the value IS 40?

I'll assume you want:

Less than or equal to 40 = 46
Greater than 40 = 69

=IF(COUNT(A1),IF(A140,69,46),"")

--
Biff
Microsoft Excel MVP


"Brian" wrote in message
...
Does anyone know how to create a cell that will calculate whether the
number
in the orginal cell is above or below 40. If above 40 it will calculate at
$69.00 for anything over if below it will calculate at $46.00.

Thanks in advance




Max

excel formula
 
Something like this, I reckon:
In B2, copied down: =IF(A2="","",IF(A240,A2*64,A2*46))
Adapt to suit. Any good? hit the YES below
--
Max
Singapore
---
"Brian" wrote:
Does anyone know how to create a cell that will calculate whether the number
in the orginal cell is above or below 40. If above 40 it will calculate at
$69.00 for anything over if below it will calculate at $46.00


ozgrid.com

excel formula
 
=IF(AND(NOT(ISBLANK(A1)),A1<40),46,IF(AND(A140,NO T(ISTEXT(A1))),69,0))

Format the result cell as Currency.

--
Regards
Dave Hawley
www.ozgrid.com
"Brian" wrote in message
...
Does anyone know how to create a cell that will calculate whether the
number
in the orginal cell is above or below 40. If above 40 it will calculate at
$69.00 for anything over if below it will calculate at $46.00.

Thanks in advance



Khoshravan

excel formula
 
Dear Valko

Hi.
What is the function of COUNT(A1) in
=IF(COUNT(A1),IF(A140,69,46),"")

According to your explanation, it accounts for entries equal to 40, but I
can not figure out "count" functionality in this regard.
Your note is highly appreciated.

--
Rasoul Khoshravan Azar



"T. Valko" wrote:

You account for anything less than 40 and anything greater than 40 but what
if the value IS 40?

I'll assume you want:

Less than or equal to 40 = 46
Greater than 40 = 69

=IF(COUNT(A1),IF(A140,69,46),"")

--
Biff
Microsoft Excel MVP


"Brian" wrote in message
...
Does anyone know how to create a cell that will calculate whether the
number
in the orginal cell is above or below 40. If above 40 it will calculate at
$69.00 for anything over if below it will calculate at $46.00.

Thanks in advance



.


Khoshravan

excel formula
 
Back to my previous post, I think I got the answer. "count" checks to see if
the cell is empty or not and leaves the result empty if origin is empty or
not-number and enters second "if" otherwise.

That count usage was nice, but I couldn't understand its relation to equal
part to 40.
--
Rasoul Khoshravan Azar



"T. Valko" wrote:

You account for anything less than 40 and anything greater than 40 but what
if the value IS 40?

I'll assume you want:

Less than or equal to 40 = 46
Greater than 40 = 69

=IF(COUNT(A1),IF(A140,69,46),"")

--
Biff
Microsoft Excel MVP


"Brian" wrote in message
...
Does anyone know how to create a cell that will calculate whether the
number
in the orginal cell is above or below 40. If above 40 it will calculate at
$69.00 for anything over if below it will calculate at $46.00.

Thanks in advance



.


T. Valko

excel formula
 
Yes, you pretty much got it figured out.

COUNT tests that there is in fact only a number entered in the cell. Without
testing for a number it would be possible that if the cell contained a TEXT
entry then:

A140 would be TRUE and give an incorrect (or unexpected) result.

--
Biff
Microsoft Excel MVP


"Khoshravan" wrote in message
...
Back to my previous post, I think I got the answer. "count" checks to see
if
the cell is empty or not and leaves the result empty if origin is empty or
not-number and enters second "if" otherwise.

That count usage was nice, but I couldn't understand its relation to equal
part to 40.
--
Rasoul Khoshravan Azar



"T. Valko" wrote:

You account for anything less than 40 and anything greater than 40 but
what
if the value IS 40?

I'll assume you want:

Less than or equal to 40 = 46
Greater than 40 = 69

=IF(COUNT(A1),IF(A140,69,46),"")

--
Biff
Microsoft Excel MVP


"Brian" wrote in message
...
Does anyone know how to create a cell that will calculate whether the
number
in the orginal cell is above or below 40. If above 40 it will calculate
at
$69.00 for anything over if below it will calculate at $46.00.

Thanks in advance



.





All times are GMT +1. The time now is 10:19 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com