Problem with If

  • Thread starter Thread starter Box666
  • Start date Start date
B

Box666

Sorry i do not use excel very often and i cannot recall how to write
the following.

In colA I have a list of numbers as welll as a few blank cells, in
colM I need to break them down.

In simple english I am trying to say if the number in colA is between
1 and 25 put an "A" in colM, if the number is between 26 and 35 put a
"B" in ColM and if it is over 35 put a "C" in colM but if it is blank
then put a blank in ColM.

I thought i had it sorted but the blank cells keep being shown as
either A or C depending on how i write it.

Any help greatfully accepted.

bob
 
Try this:

=IF(OR(A1="",A1<=0),"",IF(A1<=25,"A",IF(A1<=35,"B","C")))

Hope this helps.

Pete
 
hi
see if this will work for you....
=IF(A5="","",IF(A5<25,"A",IF(A5<35,"B",IF(A5>35,"C",""))))
regards
FSt1
 
hi
see if this will work for you....
=IF(A5="","",IF(A5<25,"A",IF(A5<35,"B",IF(A5>35,"C",""))))
regards
FSt1










- Show quoted text -


Thank you that sorted it.

Bob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top