+ Reply to Thread
Results 1 to 5 of 5

Making a spreadsheet dynamic

Hybrid View

holla Making a spreadsheet dynamic 09-09-2009, 12:38 PM
holla Re: Making a spreadsheet... 09-09-2009, 05:40 PM
shg Re: Making a spreadsheet... 09-09-2009, 05:51 PM
holla Re: Making a spreadsheet... 09-10-2009, 11:42 AM
shg Re: Making a spreadsheet... 09-10-2009, 12:27 PM
  1. #1
    Registered User
    Join Date
    09-09-2009
    Location
    boston, ma
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Making a spreadsheet dynamic

    Thanks for the welcome and suggestion SHG. I did read the forum rules and was in the middle of typing out a new post when the solution hit me, so I guess what I'll do is upload the Excel sheet here with both the question and the solution in case anyone else has had this problem.

    If you take a look at the attached sheet (or the images in the original post) you can see that I was trying to get the average for a specific range of numbers, with the size of the range depending on the sum of two numbers. Specifically, i wanted the average amount of baskets made by the number of rosterable players in my fantasy league.

    I tried all sorts of things to get this to work. Specifically, I:

    1) Attempted to record a macro where I did the calculation of (teams in league*rounds of draft), then copied that sum and wrote out the equation for average FGM and pasted in the sum, but when I ran the macro with different values for teams in league or rounds of draft, the macro would always paste the original sum from when I first recorded the macro into the equation.

    2) I considered entering a bunch of nested IF functions. I was willing to enter 250 or so if functions in order to make this work properly, even though it would've been awful. But I read that you can only next 7 IF functions.

    3) I considered trying to learn the CHOOSE function which I have never used before, and figured I could create ranges (I hear you can have up to 29 values in a CHOOSE function. I figured that if this worked, dividing 260 or so draftable players into 29 groups would be accurate enough.

    But I was still hoping for something better. Then, I thought to use vlookup. So I added a column into my "DATA" tab on my spreadsheet called "AVGFGM" (column AE) and then added a column in the beginning numbered 1-259. I then went back to my settings tab and ran a vlookup for the sum of the rounds in draft*teams in league back to my DATA tab, and just pulled the average right from that new column. Problem solved! I am pretty happy with it.

    Thanks and I'm sure I'll have more problems down the road, will be sure to follow the rules next time
    Attached Files Attached Files

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Making a spreadsheet dynamic

    Thank you for posting back with your solution.
    Last edited by shg; 09-10-2009 at 12:30 PM.
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1