ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Help with a formula please (https://www.excelbanter.com/excel-discussion-misc-queries/102457-help-formula-please.html)

raigo

Help with a formula please
 
Hello, i am trying to make a aformula that would put 3 as cell value if the
data is between 31 and 33, put 5 if data is between 33 and 36 and would put
10 if data is over 36 and 0 if data is below 33. I copied the formula from
excel help file, changed nothing and it didnt work in the forst place. I had
to replace all commas with semicolons then it kinda worked. But it only
counts the first condition now. Help please :)

=IF(C2=31;"3";IF(C2=33;"5"; IF(C2=36;"10";"0")))


Original Formula from excel help: =IF(A289,"A",IF(A279,"B",
IF(A269,"C",IF(A259,"D","F")))) (it doesnt work, keeps giving errors on
commas)

Thank You

Bob Phillips

Help with a formula please
 
=IF(C236;10;IF(C2=33;5; IF(C2=31;3;0)))


--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"raigo" wrote in message
...
Hello, i am trying to make a aformula that would put 3 as cell value if

the
data is between 31 and 33, put 5 if data is between 33 and 36 and would

put
10 if data is over 36 and 0 if data is below 33. I copied the formula from
excel help file, changed nothing and it didnt work in the forst place. I

had
to replace all commas with semicolons then it kinda worked. But it only
counts the first condition now. Help please :)

=IF(C2=31;"3";IF(C2=33;"5"; IF(C2=36;"10";"0")))


Original Formula from excel help: =IF(A289,"A",IF(A279,"B",
IF(A269,"C",IF(A259,"D","F")))) (it doesnt work, keeps giving errors on
commas)

Thank You




Niek Otten

Help with a formula please
 
Change the order in which you test: first test for =36, etc. (Because if a cell is 40, it is =31 so it will satisfy your present
first test)

Commas or semicolons is a matter of local settings for list separators.

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"raigo" wrote in message ...
| Hello, i am trying to make a aformula that would put 3 as cell value if the
| data is between 31 and 33, put 5 if data is between 33 and 36 and would put
| 10 if data is over 36 and 0 if data is below 33. I copied the formula from
| excel help file, changed nothing and it didnt work in the forst place. I had
| to replace all commas with semicolons then it kinda worked. But it only
| counts the first condition now. Help please :)
|
| =IF(C2=31;"3";IF(C2=33;"5"; IF(C2=36;"10";"0")))
|
|
| Original Formula from excel help: =IF(A289,"A",IF(A279,"B",
| IF(A269,"C",IF(A259,"D","F")))) (it doesnt work, keeps giving errors on
| commas)
|
| Thank You




All times are GMT +1. The time now is 09:18 AM.

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