Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Return value based on fraction of a list

In $U$8:Ux I have a variable length list of sizes. In $Q$4 I have a
number (1, 2, 4, 8, etc), that is used to divide $U$8:Ux into more-or-
less equal sections/fractions. In $P$8:Px I need to return a set of
values (1 - Q4) that reflects the fractions in $U$8:Ux (ie they would
be the numerator of the fractions). Eg:

P U
1 23
1 16
1 1.5
1 85.6
1 23.4
1 12.8
2 45
2 23.6
2 56
2 105.1

So far this formula is getting there, but I can't work out how to
finish it such that it accommodates ANY value in Q4.

=IF(SUM($U$8:U8)<SUM($U$8:$U$75)/$Q$4,1,IF(SUM($U8:U$26)<SUM($U$26:$U
$75)/$Q$4-1,2,IF(SUM($U8:U$26)<SUM($U$26:$U$75)/$Q$4-2,3,"Other values
that I can't work out")))


Can anyone help? Preferably a formula but VBA would be good too. Don't
worry about the SUM($U$26:$U$75) bit: I can make that take the column
length into account.
thanks,
Philip
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Return value based on fraction of a list

's OK: Rik over on .worksheet.programming has given me the solution.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Return a list of cells based on data in a single cell. Tim G. Excel Worksheet Functions 4 May 15th 08 06:29 PM
Text fraction to fraction format brownti via OfficeKB.com Excel Worksheet Functions 1 February 1st 08 02:38 PM
How do I change fraction to fraction characters? cmcqueary2806 Excel Worksheet Functions 1 November 2nd 06 09:58 PM
Return value from list based on criteria [email protected] Excel Worksheet Functions 2 October 3rd 06 10:44 AM
Return a price based on a customer from a drop down list Pete Elbert Excel Discussion (Misc queries) 7 May 1st 06 02:54 AM


All times are GMT +1. The time now is 08:29 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"