ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   If Statements (https://www.excelbanter.com/excel-discussion-misc-queries/238391-if-statements.html)

Shortstopper00

If Statements
 
I need a statement that allows me to use a certain number in a equation for
when the number is within an range.
Example
The number range is between 4000 and 40000
So when the number in column 1 needs to be multipled by 31 if the number is
between 4000 and 40000. And column two will have the new inputs.
I need an If statement.

Storm

If Statements
 
What do you want it to do if it does not fall within the range you specified?

Storm.

"Shortstopper00" wrote:

I need a statement that allows me to use a certain number in a equation for
when the number is within an range.
Example
The number range is between 4000 and 40000
So when the number in column 1 needs to be multipled by 31 if the number is
between 4000 and 40000. And column two will have the new inputs.
I need an If statement.


Shortstopper00

If Statements
 
Just remain the same Number. Not times by 31.



"Storm" wrote:

What do you want it to do if it does not fall within the range you specified?

Storm.

"Shortstopper00" wrote:

I need a statement that allows me to use a certain number in a equation for
when the number is within an range.
Example
The number range is between 4000 and 40000
So when the number in column 1 needs to be multipled by 31 if the number is
between 4000 and 40000. And column two will have the new inputs.
I need an If statement.


Storm

If Statements
 
Assuming value is in A1 and you want the answer in B1, use this formula:

=IF(AND(A1=4000,A1<=40000),A1*31,A1)

Storm

"Shortstopper00" wrote:

Just remain the same Number. Not times by 31.



"Storm" wrote:

What do you want it to do if it does not fall within the range you specified?

Storm.

"Shortstopper00" wrote:

I need a statement that allows me to use a certain number in a equation for
when the number is within an range.
Example
The number range is between 4000 and 40000
So when the number in column 1 needs to be multipled by 31 if the number is
between 4000 and 40000. And column two will have the new inputs.
I need an If statement.



All times are GMT +1. The time now is 05:00 AM.

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