Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel formula - between two values 1

Status
Not open for further replies.

OMoore

Technical User
Oct 23, 2003
154
EU
Hi all,

This is probably a really simple question....

I have a cell with a value, say value of C1 is 10.

I need a formula to read whether the value in C1 is between 0 and 1000 and if so to return a value of 1, or else return a blank.

I am writing the if statement as follows:

If(0<C1<1000,1,"")

Needless to say it's not working for me!

Any ideas that may help?

Thanks,
Owen
 
=IF(C1<1000,1," ")

Then fill this down if needs be
Should work.

Regards, Phil.
C.E.O. Bodgeit, Leggit & Scarper. International.
"Stuffing things up completely since 1973"
 
alternatively, if you can have negative values:

=if(and(C1>0,C1<1000),1,"")

Rgds, Geoff

"Having been erased. the document thjat you are seeking. Must now be retyped"

Please read FAQ222-2244 before you ask a question
 
Thanks for the tips.
Geoff - then "and" statement is perfect for what I need.

Thanks.
Owen
 
I tried for ages last night to work that out correctley but Geoff [wry grin] as usual [/wry grin] beat me to it.
Nice one chief

Regards, Phil.
C.E.O. Bodgeit, Leggit & Scarper. International.
"Stuffing things up completely since 1973"
 
Sorry Gizmo - least you know about ANDs now tho ;-)

Rgds, Geoff

"Having been erased. the document thjat you are seeking. Must now be retyped"

Please read FAQ222-2244 before you ask a question
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top