+ Reply to Thread
Results 1 to 3 of 3

Help with creating formula

  1. #1
    Registered User
    Join Date
    04-14-2008
    Posts
    2

    Help with creating formula

    Hi, i need help with creating a specific formula for a school project that entails extrapolating values from a constant data sheet.

    For example, for a given number between 1 and 40 there are 40 different values. I need a formula that will be able to grab a value based on the number from 1 to 40 but that will also be able to find an average value if i have a given number that isn't a whole number (like 1.5, 2.5,3.5 etc).

    Say my data table is

    1 100.1
    2 100.5
    3 100.8
    4 101,2
    ...
    40 104.6

    If my number is 1.5, i need the formula to calculate and take the average value between 100.1 and 100.5.

  2. #2
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191
    If your table is A1:B40 and the 1.5 is entered in C1, D1 can have =AVERAGE(OFFSET(B1,INT(C1)-1,0,IF(MOD(C1,1)>0,2,1),1))

  3. #3
    Registered User
    Join Date
    04-14-2008
    Posts
    2
    ah, thank you very much for your help!

+ 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