+ Reply to Thread
Results 1 to 5 of 5

Formula that counts cells and returns a number

  1. #1
    Registered User
    Join Date
    08-19-2012
    Location
    Texas, USA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Formula that counts cells and returns a number

    I've got a table that shows how long it takes to recover an intial investement of $999.79 and what I'm trying to do is figure out a formula that will tell me exactly how many months it takes to recoup my initial investment. For instance, in this example a $999.79 investment would take approximately 6.5 months to recoup. I need a formula that sums the values in the rows until it reaches the initial investment amount and then returns the number of months it took. I've attached a picture of the table. The initial investment amount is located in cell B3 in the worksheet. Can anyone help out? Thanks.

    Untitled.jpg
    Attached Images Attached Images
    Last edited by blburden; 08-19-2012 at 10:37 PM.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Formula that counts cells and returns a number

    Hi Bluburden,

    Welcome to the forum.

    Please upload a excel workbook not the image so that people can give a quick practical shot at it... thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    08-19-2012
    Location
    Texas, USA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Formula that counts cells and returns a number

    Dear DILIPandey,

    I have attached the Excel spreadsheet. The cell I'm trying to place the calculation in is cell G21.
    Attached Files Attached Files

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Formula that counts cells and returns a number

    Hi blburden and welcome to the forum,

    See if the attached does it for you. I made it all payments greater than a penny.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  5. #5
    Registered User
    Join Date
    08-19-2012
    Location
    Texas, USA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Formula that counts cells and returns a number

    Dear DILIPandey,

    Thank you for your response. The actual correct answer would be 19 months and your answer gives me 24. If you calculate months 1 - 19 in the table, you come up with $1,769.38 and my initial investment was $1,788 (Cell B3). So it would take me 19 months to recoup my investment. Is there any way to create a calculation that would keep counting the cells B13 through M18 until it reaches the amount in cell B3?

    Thanks!

+ 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