Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default If Formula using Greater than / Less than

My formula is listed below. I would like the formula to look at cell f2 and
determine if it =3 than 1, <3 but =6 than 2, <6 but =9 than 3 and <9 but
=12 than 4. The formula is not working and I know it has something to do

with my logical test but i am not able to figure it out...any help would be
appreciated.

=IF(F2<=3,1,IF(F23<=6,2,IF(F26<=9,3,4)))

Carolyn
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default If Formula using Greater than / Less than

Try
=IF(F2<=3,1,IF(AND(F23,F2<=6),2,IF(AND(F26,F2<=9 ),3,4)))

"crmulle" wrote:

My formula is listed below. I would like the formula to look at cell f2 and
determine if it =3 than 1, <3 but =6 than 2, <6 but =9 than 3 and <9 but
=12 than 4. The formula is not working and I know it has something to do

with my logical test but i am not able to figure it out...any help would be
appreciated.

=IF(F2<=3,1,IF(F23<=6,2,IF(F26<=9,3,4)))

Carolyn

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default If Formula using Greater than / Less than

Thank you so much...it worked!

"Sheeloo" wrote:

Try
=IF(F2<=3,1,IF(AND(F23,F2<=6),2,IF(AND(F26,F2<=9 ),3,4)))

"crmulle" wrote:

My formula is listed below. I would like the formula to look at cell f2 and
determine if it =3 than 1, <3 but =6 than 2, <6 but =9 than 3 and <9 but
=12 than 4. The formula is not working and I know it has something to do

with my logical test but i am not able to figure it out...any help would be
appreciated.

=IF(F2<=3,1,IF(F23<=6,2,IF(F26<=9,3,4)))

Carolyn

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default If Formula using Greater than / Less than

You don't need any IFs:

=1+ROUNDDOWN((F2-0.5)/3,0)

--
Gary''s Student - gsnu200828


"crmulle" wrote:

My formula is listed below. I would like the formula to look at cell f2 and
determine if it =3 than 1, <3 but =6 than 2, <6 but =9 than 3 and <9 but
=12 than 4. The formula is not working and I know it has something to do

with my logical test but i am not able to figure it out...any help would be
appreciated.

=IF(F2<=3,1,IF(F23<=6,2,IF(F26<=9,3,4)))

Carolyn

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default If Formula using Greater than / Less than

But you don't need to test for F23 when you've already taken out those
where F2<=3, and you don't need to test for F26 when you've already taken
out those where F2<=6.
=IF(F2<=3,1,IF(AND(F23,F2<=6),2,IF(AND(F26,F2<=9 ),3,4))) can be simplified
to
=IF(F2<=3,1,IF(F2<=6,2,IF(F2<=9,3,4)))
--
David Biddulph

"Sheeloo" <="to" & CHAR(95) & "sheeloo" & CHAR(64) & "hotmail.com" wrote in
message ...
Try
=IF(F2<=3,1,IF(AND(F23,F2<=6),2,IF(AND(F26,F2<=9 ),3,4)))

"crmulle" wrote:

My formula is listed below. I would like the formula to look at cell f2
and
determine if it =3 than 1, <3 but =6 than 2, <6 but =9 than 3 and <9
but
=12 than 4. The formula is not working and I know it has something to
do

with my logical test but i am not able to figure it out...any help would
be
appreciated.

=IF(F2<=3,1,IF(F23<=6,2,IF(F26<=9,3,4)))

Carolyn





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default If Formula using Greater than / Less than

Hi Carolyn,

The previous post will work fine but infact there is no need to use the AND
function at all.

Try: =IF(F2<=3,1,IF(F2<=6,2,IF(F2<=9,3,4)))

Now this will return a value of 1 for all blank (or empty cells), to avoid
this use:

=IF(ISBLANK(F2),"",IF(F2<=3,1,IF(F2<=6,2,IF(F2<=9, 3,4))))

Good look.

Danny

"crmulle" wrote in message
...
My formula is listed below. I would like the formula to look at cell f2
and
determine if it =3 than 1, <3 but =6 than 2, <6 but =9 than 3 and <9
but
=12 than 4. The formula is not working and I know it has something to do

with my logical test but i am not able to figure it out...any help would
be
appreciated.

=IF(F2<=3,1,IF(F23<=6,2,IF(F26<=9,3,4)))

Carolyn


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default If Formula using Greater than / Less than

Thank you!

"Dan R" wrote:

Hi Carolyn,

The previous post will work fine but infact there is no need to use the AND
function at all.

Try: =IF(F2<=3,1,IF(F2<=6,2,IF(F2<=9,3,4)))

Now this will return a value of 1 for all blank (or empty cells), to avoid
this use:

=IF(ISBLANK(F2),"",IF(F2<=3,1,IF(F2<=6,2,IF(F2<=9, 3,4))))

Good look.

Danny

"crmulle" wrote in message
...
My formula is listed below. I would like the formula to look at cell f2
and
determine if it =3 than 1, <3 but =6 than 2, <6 but =9 than 3 and <9
but
=12 than 4. The formula is not working and I know it has something to do

with my logical test but i am not able to figure it out...any help would
be
appreciated.

=IF(F2<=3,1,IF(F23<=6,2,IF(F26<=9,3,4)))

Carolyn



  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default If Formula using Greater than / Less than

Thank you

"Gary''s Student" wrote:

You don't need any IFs:

=1+ROUNDDOWN((F2-0.5)/3,0)

--
Gary''s Student - gsnu200828


"crmulle" wrote:

My formula is listed below. I would like the formula to look at cell f2 and
determine if it =3 than 1, <3 but =6 than 2, <6 but =9 than 3 and <9 but
=12 than 4. The formula is not working and I know it has something to do

with my logical test but i am not able to figure it out...any help would be
appreciated.

=IF(F2<=3,1,IF(F23<=6,2,IF(F26<=9,3,4)))

Carolyn

  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default If Formula using Greater than / Less than

Thank you.

"David Biddulph" wrote:

But you don't need to test for F23 when you've already taken out those
where F2<=3, and you don't need to test for F26 when you've already taken
out those where F2<=6.
=IF(F2<=3,1,IF(AND(F23,F2<=6),2,IF(AND(F26,F2<=9 ),3,4))) can be simplified
to
=IF(F2<=3,1,IF(F2<=6,2,IF(F2<=9,3,4)))
--
David Biddulph

"Sheeloo" <="to" & CHAR(95) & "sheeloo" & CHAR(64) & "hotmail.com" wrote in
message ...
Try
=IF(F2<=3,1,IF(AND(F23,F2<=6),2,IF(AND(F26,F2<=9 ),3,4)))

"crmulle" wrote:

My formula is listed below. I would like the formula to look at cell f2
and
determine if it =3 than 1, <3 but =6 than 2, <6 but =9 than 3 and <9
but
=12 than 4. The formula is not working and I know it has something to
do
with my logical test but i am not able to figure it out...any help would
be
appreciated.

=IF(F2<=3,1,IF(F23<=6,2,IF(F26<=9,3,4)))

Carolyn




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
Formula greater than Mel[_2_] Excel Worksheet Functions 2 July 25th 08 09:41 PM
Greater than or less than formula Cindy Excel Discussion (Misc queries) 3 March 18th 08 08:13 PM
Greater Than formula ginasucasa Excel Worksheet Functions 5 January 7th 08 08:41 PM
Greater than but less than formula Storm Excel Worksheet Functions 3 July 11th 07 07:50 PM
Greater than Less than formula Help with Check Mark!! Excel Discussion (Misc queries) 3 August 22nd 06 07:05 PM


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

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"