Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Selecting a subset of items from a list

I'm trying to write a function that will allow me to select a fairly
even distribution of data from a variable sized list.

I have 2 sheets, 1 of raw data, and one with presentation data. The raw
data one has say 31 entries on it, one for each day, the presentation
one has a fixed 10 cells of data. I need something that can start at
cell 1 on the raw sheet, and work through as evenly as possible to make
sure that the 10th entry on the presentation is the last entry on the
raw sheet.

The raw sheet can then change and have 62 entries, or 25 or whatever
the end user defines as the data range, but the presentation sheet will
always have 10.

The function is doing a bit more than that, but that's where the
problem lies. I have come up, so far, with the following:

=IF(ISBLANK(Trending_Data!B3),"",IF(COUNT(Source!$ E$2:$E$71)<=10,Source!E3,IF(H16+(ROUNDUP((COUNT(So urce!$E$2:$E$71))/10,0))=Source!$H$7+0,Source!$H$7,H16+(ROUNDUP((CO UNT(Source!$E$2:$E$71))/10,0)))))

The bit I'm having trouble with is the

ROUNDUP((COUNT(Source!$E$2:$E$71))/10,0)

I've tried ROUND too, but one comes up with too few results, the other
too many if the number isn't divisible directly by 10.

Can anyone give me some ideas?

Thanks,

Steve

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
Drop-down list Populated by a Subset of a larger list RJH Excel Worksheet Functions 3 March 31st 06 10:28 PM
how do I change height of in-cell drop box list to 12 items Prowlin Excel Discussion (Misc queries) 1 January 27th 06 05:59 PM
copying list items Hru48 Excel Discussion (Misc queries) 0 September 28th 05 04:14 PM
How can i change the font size of the items in a list Kiran Excel Discussion (Misc queries) 1 June 15th 05 11:07 PM
changing value of a cell by selecting an item from a drop down list Bobby Mir Excel Worksheet Functions 6 June 8th 05 08:33 PM


All times are GMT +1. The time now is 10:48 AM.

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"