+ Reply to Thread
Results 1 to 15 of 15

How to add multiple column cells based on date

  1. #1
    Registered User
    Join Date
    12-07-2011
    Location
    Guildford
    MS-Off Ver
    Excel 2016
    Posts
    44

    How to add multiple column cells based on date

    Hello
    I am trying to find a way to show forecast to date.
    If I have multiple columns showing forecast per month (Jan-Dec), in the totals column, I want to show what is the current forecast to date depending on a date I choose.
    So If I choose Jan, it should show just Jan, if I choose Feb, it should show Jan + Feb

    thanks

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: How to add multiple column cells based on date

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    12-07-2011
    Location
    Guildford
    MS-Off Ver
    Excel 2016
    Posts
    44

    Re: How to add multiple column cells based on date

    Thanks, see attached
    Attached Files Attached Files

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: How to add multiple column cells based on date

    In C2 Cell

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


    Drag it right


    In M5 Cell

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


    Drag it down and right

    Refer the attached file
    Attached Files Attached Files

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

    Re: How to add multiple column cells based on date

    In M5 then drag across.
    N1= month selected
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  6. #6
    Registered User
    Join Date
    12-07-2011
    Location
    Guildford
    MS-Off Ver
    Excel 2016
    Posts
    44

    Re: How to add multiple column cells based on date

    That does seem to work!
    Thank you very much!

    1 follow up question I have.
    If I added 1 more column to the end called FY Forecast, this would show the actuals + forecast for the year. But if I choose March, it would show only the actuals for Jan, Feb and March and the Forecasts for April to December.
    Can that be done at all?

  7. #7
    Registered User
    Join Date
    12-07-2011
    Location
    Guildford
    MS-Off Ver
    Excel 2016
    Posts
    44

    Re: How to add multiple column cells based on date

    If I wanted to summarise this in a front summary sheet, based on totals for all projects say, how can I do this?
    See attached for an example
    Attached Files Attached Files

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

    Re: How to add multiple column cells based on date

    It is not clear add another column. Your file does not show any added column.
    Do you want results in Front sheet?

  9. #9
    Registered User
    Join Date
    12-07-2011
    Location
    Guildford
    MS-Off Ver
    Excel 2016
    Posts
    44

    Re: How to add multiple column cells based on date

    Hi
    I have amended a little
    Basically on the front sheet, I would like a formula which finds Programme 1 in the work tabs (I have over 100 programmes), all would be named in the front sheet)
    Depending on the month chose in the front sheet, it should show the total forecast.

    So for example, in the attachment, for Programme 1 on the front sheet, choosing February, should give me a forecast of 34 in the Front worksheet. (this coming from the programme 1 tab cell f14.

    If I chose March, for Programme 2, I should get 36

    Thanks
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    12-07-2011
    Location
    Guildford
    MS-Off Ver
    Excel 2016
    Posts
    44

    Re: How to add multiple column cells based on date

    Hi
    Also, I have come across an issue with the formula:

    =SUMIF(OFFSET($B$20,,,,MATCH($A$2&$AM$20,$16:$16,0)),$AM$20,OFFSET(B21,,,,MATCH($A$2&$AM$20,$16:$16,0)))

    going back to the spreadsheet you kindly attached in an earlier message, I can see that if there were prior months in previous years on the same row, the forecasts / actuals etc would be calculated as well.

    So where we started with January in cell c3, on my work I have previous months of other years, these are calculated in the totals tho

    thoughts?

  11. #11
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: How to add multiple column cells based on date

    Please try at D6

    =SUMPRODUCT(INDIRECT("'"&$C6&"'!C14:K14"),(INDIRECT("'"&$C6&"'!C4:K4")=LEFT(D$5,FIND(" ",D$5)-1))*((INDIRECT("'"&$C6&"'!C3:K3")=$B$1)))

    or better use Sumifs

    =SUMIFS(INDIRECT("'"&$C6&"'!C14:K14"),INDIRECT("'"&$C6&"'!C4:K4"),LEFT(D$5,FIND(" ",D$5)-1),INDIRECT("'"&$C6&"'!C3:K3"),$B$1)
    Attached Files Attached Files
    Last edited by Bo_Ry; 01-25-2019 at 01:01 PM.

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

    Re: How to add multiple column cells based on date

    In D6 and dragged across
    Please Login or Register  to view this content.
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    12-07-2011
    Location
    Guildford
    MS-Off Ver
    Excel 2016
    Posts
    44

    Re: How to add multiple column cells based on date

    Thank you
    Going back to the earlier question in post 10.
    =SUMIF(OFFSET($AL$20,,,,MATCH($A$2&$AI$20,AM$16:BV$16,0)),$AI$20,OFFSET(AL21,,,,MATCH($A$2&$AI$20,AM$16:BV$16,0)))
    I have solved the issue of the totals returning figures from previous years.
    The issue I now have is that the above formula misses out on the last 1 or 2 columns.
    Will try ands create a sample spreadsheet to show you

  14. #14
    Registered User
    Join Date
    12-07-2011
    Location
    Guildford
    MS-Off Ver
    Excel 2016
    Posts
    44

    Re: How to add multiple column cells based on date

    See here:
    In cell BX 21, I expect to see 55.
    This is based on looking at Nov'18 to Sept'19
    Dates are from cell a2

    for some reason, I am getting 50, so it seems to be missing the last column (in this case September)

    Thoughts?
    Attached Files Attached Files

  15. #15
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,572

    Re: How to add multiple column cells based on date

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

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Sum multiple cells in one column based on date range in another column
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-24-2017, 09:19 AM
  2. Replies: 5
    Last Post: 01-12-2017, 04:34 AM
  3. [SOLVED] Find unique cells in column -> Sum another column based on multiple criteria
    By mjoc9 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-20-2015, 09:29 AM
  4. [SOLVED] count blank cells in one column based on date in different column
    By IreneADS in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-16-2014, 09:58 AM
  5. Replies: 4
    Last Post: 12-04-2012, 02:24 AM
  6. [SOLVED] return multiple results from one column based on cells in another column
    By chollyfunk in forum Excel General
    Replies: 5
    Last Post: 05-09-2012, 05:20 AM
  7. Copy cells to new column based on date
    By wotaj in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-09-2011, 11:39 AM

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