Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / February 2008

Tip: Looking for answers? Try searching our database.

conditional formulas

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jpj1 - 07 Feb 2008 19:03 GMT
Hi

I need help an excel function/formula
Goal is to divide a number ex (40,50,60,75,87 etc) with specific constraints
say any number between 20 & 25 ex (65/(20>=&=<25))=3 to get a whole number
within that range.
Ron Coderre - 07 Feb 2008 19:14 GMT
Maybe something like this:

A1: (a number.....eg 60)
C2: (lower limit.......eg 20)
D2: (lower limit.......eg 25)

This ARRAY FORMULA, committed with CTRL+SHIFT+ENTER
(instead of just ENTER), returns the first integer quotient:

B1: =INDEX(A1/ROW(INDEX($A:$A,C2):INDEX($A:$A,D2)),
MATCH(1,--(MOD(A1/ROW(INDEX($A:$A,C2):INDEX($A:$A,D2)),1)=0),0))

In the above example, the formula divides 60 by 20, 21, 22, 23, 24 and 25
and returns the first quotient that is a whole number: 3

Is that something you can work with?

Signature

Regards,

Ron
Microsoft MVP (Excel)
(xl2003, XP Pro)

> Hi
>
[quoted text clipped - 3 lines]
> say any number between 20 & 25 ex (65/(20>=&=<25))=3 to get a whole number
> within that range.
Ron Coderre - 07 Feb 2008 19:19 GMT
Darn! I never seem to notice typos until AFTER I send.

This:
D2: (lower limit.......eg 25)

Should be THIS:
D2: (upper limit.......eg 25)

Signature

Regards,

Ron
Microsoft MVP (Excel)
(xl2003, XP Pro)

> Maybe something like this:
>
[quoted text clipped - 21 lines]
>> number
>> within that range.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.