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. |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
"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! |
#2
|
|||
|
|||
"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
|
|||
|
|||
"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
|
|||
|
|||
"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 | |
|
|
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 |