+ Reply to Thread
Results 1 to 5 of 5

How to call a portion of the formula string in a different cell in current cell?

  1. #1
    Registered User
    Join Date
    03-13-2014
    Location
    The Woodlands, Texas
    MS-Off Ver
    Excel 2010
    Posts
    3

    How to call a portion of the formula string in a different cell in current cell?

    Here's what I'm trying to do. I have data I'm entering on a daily basis, say in column A, and I'm trying to analyze weekly trends, say in column B. I have a cell, say it's B1, that sums data from week 1 (A1:A7) as follows:

    B1: =sum(A1:A7)

    I want to be able to enter a formula in B2 that sums the data for week 2 (A8:A14), and I want this formula to be able to use the formula entered in B1 in order to determine what cells to sum. i.e.:

    B2: =sum('last cell referenced in B1 + 1':'last cell referenced in B1 + 7')

    This would then allow me to simply copy the formula down to analyze every week, instead of needing to retype '=sum(A#:A##)' every time. Is there a way to do this?


    Thanks for any help with this!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: How to call a portion of the formula string in a different cell in current cell?

    Hi and welcome ot the forum

    Take a look at using the sumifS() function for this. If you still have a problem, upload a sample and we can work through it
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: How to call a portion of the formula string in a different cell in current cell?

    Try this in B1 and drag down.
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    03-13-2014
    Location
    The Woodlands, Texas
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: How to call a portion of the formula string in a different cell in current cell?

    Ford

    Thank you for your reply. I'm not quite sure how to use sumifs() in this case, but was able to solve my query with the formula below so am all good now.

    K

  5. #5
    Registered User
    Join Date
    03-13-2014
    Location
    The Woodlands, Texas
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: How to call a portion of the formula string in a different cell in current cell?

    kvsrinivasamurthy,

    That formula worked perfectly! Thank you very much for your help here.

    K

+ 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. Extracting a portion of text string from a cell
    By TKJ in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-30-2013, 12:49 PM
  2. [SOLVED] Getting an error when trying to call a function from a sub, with string value of cell
    By RebelScum in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-21-2012, 06:21 AM
  3. [SOLVED] How do I extract a portion of a string into an adjacent cell?
    By tura910 in forum Excel General
    Replies: 4
    Last Post: 03-26-2012, 08:40 AM
  4. Portion of formula in another cell
    By dellschipper in forum Excel General
    Replies: 3
    Last Post: 06-22-2011, 03:04 PM
  5. cut a portion of a cell's contents and paste the cut portion into the net column
    By NJEvan in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-12-2010, 05:08 AM

Tags for this Thread

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