A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

"Between" Formula



 
 
Thread Tools Display Modes
  #1  
Old July 23rd, 2004, 05:17 PM
Paul
external usenet poster
 
Posts: n/a
Default "Between" Formula

HELP!

I'm trying to create a formula that displays a variable
(5, 7, 8, etc) when the value cell in question lies
between two constants...?!

A simple example would be:

If D5 is between 1 and 10 then say "1", but if D5 is
between 11 and 20 then say "2", and so on...

Is there any way of doing this? I'm begining to think
not!?!

Thank you to anyone who can help me!
Ads
  #2  
Old July 23rd, 2004, 05:34 PM
Norman Harker
external usenet poster
 
Posts: n/a
Default "Between" Formula

Hi Paul!

Three possibilities he

If you have a constant range (e.g. 1-10, 11-20, 21-30), you can derive
a formula.

With a limited number of alternatives use the AND function in your
condition for an IF function.

With more than (say) three alternatives, take a look at VLOOKUP.

Which possibility you adopt will depend upon more details as to your
data and the figures you want to show.

--
Regards
Norman Harker MVP (Excel)
Sydney, Australia



  #3  
Old July 23rd, 2004, 05:36 PM
Frank Kabel
external usenet poster
 
Posts: n/a
Default "Between" Formula

Hi
one way:
=IF(AND(A1=1,A1=10),1,"other value")


--
Regards
Frank Kabel
Frankfurt, Germany


Paul wrote:
HELP!

I'm trying to create a formula that displays a variable
(5, 7, 8, etc) when the value cell in question lies
between two constants...?!

A simple example would be:

If D5 is between 1 and 10 then say "1", but if D5 is
between 11 and 20 then say "2", and so on...

Is there any way of doing this? I'm begining to think
not!?!

Thank you to anyone who can help me!

  #4  
Old July 24th, 2004, 10:55 PM
Sandy Mann
external usenet poster
 
Posts: n/a
Default "Between" Formula

Paul,

If you mean to change the returned value for every decade in the tartget
cell ie 1 - 10 in Target cell returns 1, 11 - 20 returns 2, 21 - 30 returns
3 etc, try

=CEILING(D5,10)/10

HTH

Sandy

--
to e-mail direct replace @mailintor.com with @tiscali.co.uk

"Paul" wrote in message
...
HELP!

I'm trying to create a formula that displays a variable
(5, 7, 8, etc) when the value cell in question lies
between two constants...?!

A simple example would be:

If D5 is between 1 and 10 then say "1", but if D5 is
between 11 and 20 then say "2", and so on...

Is there any way of doing this? I'm begining to think
not!?!

Thank you to anyone who can help me!




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting a SUMPRODUCT formula to COUNTA active... BeSmart Worksheet Functions 8 March 27th, 2004 03:36 PM
Alternative formula to HLookup Bernie Deitrick Worksheet Functions 0 March 26th, 2004 12:53 PM
Offset formula Frank Kabel Worksheet Functions 5 March 15th, 2004 09:50 PM
Dynamic formula to sum across rows turtleman2 Worksheet Functions 5 March 8th, 2004 08:11 PM
Sheet Names Joseph M. Yonek Worksheet Functions 6 January 3rd, 2004 02:15 AM


All times are GMT +1. The time now is 06:25 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright 2004-2018 OfficeFrustration.
The comments are property of their posters.