+ Reply to Thread
Results 1 to 3 of 3

Sum fractional number of cells in a range

  1. #1
    Registered User
    Join Date
    10-29-2009
    Location
    Zurich, Switzerland
    MS-Off Ver
    Excel 2016
    Posts
    15

    Sum fractional number of cells in a range

    Hi all,

    I'm trying to sum several cells, but the problem is that the number of cells to sum can be fractional. This is, I have this table:

    A B C D E F
    10 30 25 50 20 40

    Now, based on a variable, I would want to sum the first 3.5 cells (from left to right). So this would mean: 10+30+25+(50*0.5)=90

    Is it possible in one just formula specified a fractional range of cells?

    Thanks a lot.

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: Sum fractional number of cells in a range

    Row\Col
    A
    B
    C
    D
    E
    F
    1
    10
    30
    25
    50
    20
    40
    2
    3
    3.5
    90
    4
    90


    B4
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    as per your excel version 2003 it would work.

    onwards 2007 can use below one also.

    B4
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,937

    Re: Sum fractional number of cells in a range

    or can try (based on Ankur's example)
    =IF(A3>0,SUM(A1:INDEX(A1:F1,INT(A3)),INDEX(A1:F1,INT(A3)+1)*MOD(A3,1)),"")
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Rounding a number depending on the fractional value
    By ammaliz in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-21-2017, 09:51 PM
  2. Calculating a fractional average (salary) for a changing base number (bonus program start
    By Bastiaan van Vliet in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-26-2017, 05:47 PM
  3. [SOLVED] Add a fractional amount for a range of cells of similar, but different data
    By MGatESSInc in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-26-2013, 05:42 PM
  4. Excel 2007 : Removing zero from a fractional number
    By scrufy in forum Excel General
    Replies: 2
    Last Post: 01-08-2011, 09:36 AM
  5. Maintaining fractional formatting when combining cells
    By adrian078 in forum Excel General
    Replies: 8
    Last Post: 09-16-2008, 11:21 PM
  6. Why is ranking formula giving a fractional number?
    By Jerry M. Photog in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-16-2008, 06:28 AM
  7. How do I isolate the Fractional part of a number in Excel VB?
    By Cumulous in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-03-2006, 05:00 PM

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