ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   I'd like to make a formula that does this.. (https://www.excelbanter.com/excel-worksheet-functions/64636-id-like-make-formula-does.html)

Garnet

I'd like to make a formula that does this..
 
IF a cell A's value is greater than 10 and less than 19 then Cell B equals 1,
IF A2 is between 20 and 29 then B2 equals 2, etc, etc,

I've tried every iteration of IF statements that I know of and I'm not
getting what I want.

Thanks!



Don Guillett

I'd like to make a formula that does this..
 
try this. Notice I start with the HIGHEST first
=IF(A229,3,IF(A219,2,IF(A29,1,"")))
--
Don Guillett
SalesAid Software

"Garnet" wrote in message
...
IF a cell A's value is greater than 10 and less than 19 then Cell B equals
1,
IF A2 is between 20 and 29 then B2 equals 2, etc, etc,

I've tried every iteration of IF statements that I know of and I'm not
getting what I want.

Thanks!





Duke Carey

I'd like to make a formula that does this..
 
Maybe

=int(A2/10)


"Garnet" wrote:

IF a cell A's value is greater than 10 and less than 19 then Cell B equals 1,
IF A2 is between 20 and 29 then B2 equals 2, etc, etc,

I've tried every iteration of IF statements that I know of and I'm not
getting what I want.

Thanks!



Emily

I'd like to make a formula that does this..
 
There is probably a better way... but here's what I would do...

=IF(AND(A510,A5<19),1,IF(AND(A520,A5<29),2,...))

"Garnet" wrote:

IF a cell A's value is greater than 10 and less than 19 then Cell B equals 1,
IF A2 is between 20 and 29 then B2 equals 2, etc, etc,

I've tried every iteration of IF statements that I know of and I'm not
getting what I want.

Thanks!




All times are GMT +1. The time now is 01:56 PM.

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