Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Excel ranges within a cell.

A2 is the numerical value < 13, or between 13 - 18, or 18. What formula do
I use? I tried =IF(A2<=13,"A",IF(A213<18,"B", IF(A218,"C"))). The only part
of the formula that doesn't work is it middle portion - IF(A213<18,"B".
Whataya think? Thanks so much.
Danny
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Excel ranges within a cell.

If A2 is numeric, you could use something like this:
=if(a2<=13,"A",if(a2<18,"B","C"))

I guessed that you wanted C if A2=18.

But just for learning the =and() function:
=if(a2<=13,"A",if(and(a213,a2<18),"B","C"))

But if excel has already determined that A2 is not less than or equal to 13 (the
first portion of your comparisons), then you don't have to check again.

But you do have to do the comparisons in a nice order:

=if(a213,"A",if(a218,"B","C"))

wouldn't work nicely (even though the formula is syntactically correct). 99 is
bigger than 13, so you'd see an A.



Danny wrote:

A2 is the numerical value < 13, or between 13 - 18, or 18. What formula do
I use? I tried =IF(A2<=13,"A",IF(A213<18,"B", IF(A218,"C"))). The only part
of the formula that doesn't work is it middle portion - IF(A213<18,"B".
Whataya think? Thanks so much.
Danny


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Excel ranges within a cell.

.. IF(A213<18
Try it like this: .. IF(AND(A213,A2<18)
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
"Danny" wrote:
A2 is the numerical value < 13, or between 13 - 18, or 18. What formula do
I use? I tried =IF(A2<=13,"A",IF(A213<18,"B", IF(A218,"C"))). The only part
of the formula that doesn't work is it middle portion - IF(A213<18,"B".
Whataya think? Thanks so much.
Danny

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Excel ranges within a cell.

Thank you Dave. Will giv it a try and let you know.
Danny

"Dave Peterson" wrote:

If A2 is numeric, you could use something like this:
=if(a2<=13,"A",if(a2<18,"B","C"))

I guessed that you wanted C if A2=18.

But just for learning the =and() function:
=if(a2<=13,"A",if(and(a213,a2<18),"B","C"))

But if excel has already determined that A2 is not less than or equal to 13 (the
first portion of your comparisons), then you don't have to check again.

But you do have to do the comparisons in a nice order:

=if(a213,"A",if(a218,"B","C"))

wouldn't work nicely (even though the formula is syntactically correct). 99 is
bigger than 13, so you'd see an A.



Danny wrote:

A2 is the numerical value < 13, or between 13 - 18, or 18. What formula do
I use? I tried =IF(A2<=13,"A",IF(A213<18,"B", IF(A218,"C"))). The only part
of the formula that doesn't work is it middle portion - IF(A213<18,"B".
Whataya think? Thanks so much.
Danny


--

Dave Peterson

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Excel ranges within a cell.

thanks Max. Will give it a try an dlet you know.
Danny

"Max" wrote:

.. IF(A213<18

Try it like this: .. IF(AND(A213,A2<18)
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
"Danny" wrote:
A2 is the numerical value < 13, or between 13 - 18, or 18. What formula do
I use? I tried =IF(A2<=13,"A",IF(A213<18,"B", IF(A218,"C"))). The only part
of the formula that doesn't work is it middle portion - IF(A213<18,"B".
Whataya think? Thanks so much.
Danny



  #6   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Excel ranges within a cell.

Welcome, my response was to let you get the hang of using AND
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
"Danny" wrote in message
...
thanks Max. Will give it a try and let you know.
Danny



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VIEWING adjacent/nonadjacent cells or cell ranges in Excel 2007 Strabo Excel Discussion (Misc queries) 1 March 2nd 07 02:39 PM
Cell Variables and Ranges jcottam Excel Discussion (Misc queries) 2 March 31st 06 07:33 PM
How can I password protect specific cell ranges in Excel? spanner Excel Discussion (Misc queries) 1 March 21st 06 01:14 AM
Cell ranges ATK Excel Discussion (Misc queries) 1 January 27th 06 08:50 AM
how do i add different cell ranges using a formula Norman K via OfficeKB.com Excel Worksheet Functions 2 September 22nd 05 10:25 AM


All times are GMT +1. The time now is 12:38 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"