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 / June 2006

Tip: Looking for answers? Try searching our database.

How to calc #'s giving totals 1-15=1, 16-25=2, 26-35=3, etc

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Yang-Um - 21 Jun 2006 01:43 GMT
I need a formula that can calc #'s giving totals: 1-15=1, 16-25=2, 26-35=3,
etc.

So that when I plug in say 9, in the first column, I get 1 as the total in
the next column but if I plug in 18, I get 2, etc.  This is for a school
physical workout challenge with different points being awarded according to
repetitions done.  The first column contains the no. of reps and the second
column contains the points awarded.  The formula has to include all
reps/points increments in the range from 1-60 reps and 1-5 points.
Domenic - 21 Jun 2006 02:36 GMT
Try...

=LOOKUP(A2,{-9.99999999999999E+307,1,16,26,36,46},{0,1,2,3,4,5})

Adjust the thresholds for the first array constant {...} accordingly.

Hope this helps!

> I need a formula that can calc #'s giving totals: 1-15=1, 16-25=2, 26-35=3,
> etc.
[quoted text clipped - 5 lines]
> column contains the points awarded.  The formula has to include all
> reps/points increments in the range from 1-60 reps and 1-5 points.
Max - 21 Jun 2006 06:20 GMT
Another play ..

Assume data (no. of reps) will be entered in A1 down

Put in B1:
=IF(A1="","",VLOOKUP(A1,{1,1;16,2;26,3;36,4;46,5},2))
Copy down as far as required
Signature

Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

> I need a formula that can calc #'s giving totals: 1-15=1, 16-25=2, 26-35=3,
> etc.
[quoted text clipped - 5 lines]
> column contains the points awarded.  The formula has to include all
> reps/points increments in the range from 1-60 reps and 1-5 points.
 
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



©2009 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.