+ Reply to Thread
Results 1 to 11 of 11

If Month then...

  1. #1
    Registered User
    Join Date
    10-17-2017
    Location
    Billings, MT
    MS-Off Ver
    2016
    Posts
    4

    Question If Month then...

    Hi Guys
    This forum seems very active so I just joined, I think I will get some great info here.
    Im just a casual user of Excel but enjoy it very much.

    I have a question that I did search and cant seem to find the answer for.

    Here is my question
    I have a "Data" sheet that I enter data in and another sheet that I display this data in.
    The Data sheet is broken into several tables with the information
    I would like Sheet1 to Display the most recent data from the Data Sheet while the Data Sheet retains all the past data

    So in Sheet1 I have several cells that should be updated depending on which month it is, this data should be pulled from the tables in the 'Data Sheet'

    So my 'Data Sheet' table looks like this:
    Column1______Jan____Feb____Mar
    Letter_____abc____def____blank
    Number___123____456___blank
    Data3_____111____222___blank

    In Sheet 1 If the Month is Jan it would look like this
    (A2)Letter = abc (DataSheetB2)
    (B2)Number = 123 (DataSheetC2)
    (C2)Data = 111 (DataSheetD2)

    When the month is February would look like this
    (A2)Letter=def (DataSheetB3)
    (B2)Number=456 (DataSheetC3)
    (C2)Data=222 (DataSheetD3)
    etc

    I hope that makes sense.

    Thanks in advance!!
    Last edited by dawolv; 10-17-2017 at 09:24 AM.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: If Month then...

    Hi dawolv & welcome to the forum,

    It would help if you added a sample file...

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. 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 shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    HTH
    Regards, Jeff

  3. #3
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: If Month then...

    see attached sample. Does that work for you.
    Otherwise, post a sample file so we know the format you want.
    Also, how do you want the month to be selected on sheet2?
    IF you want to make it current month, it can be done.
    Attached Files Attached Files

  4. #4
    Forum Contributor shivya's Avatar
    Join Date
    08-19-2017
    Location
    Delhi, India
    MS-Off Ver
    2013
    Posts
    240

    Re: If Month then...

    You can Use OFFSET for dynamic range but when you update data, you need to refresh your table.

  5. #5
    Registered User
    Join Date
    10-17-2017
    Location
    Billings, MT
    MS-Off Ver
    2016
    Posts
    4

    Re: If Month then...

    Thanks guys!
    I uploaded it I think...

    Hope it makes more sense, the data is all made up; there are many cells I would like to have updated monthly

    Hope it all makes sense please let me know if I can explain it a different way

    Thanks!!
    Attached Files Attached Files

  6. #6
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: If Month then...

    Your source data isn't that friendly to work with. That being said, these formulas produce what you are looking for:

    C8 =LOOKUP(2,1/Data!B6:G6,Data!B6:G6)

    D8 =LOOKUP(2,1/Data!B7:G7,Data!B7:G7)

    E8 =LOOKUP(2,1/Data!B8:G8,Data!B8:G8)

    Rows 9-11 are the same principle.

  7. #7
    Registered User
    Join Date
    10-17-2017
    Location
    Billings, MT
    MS-Off Ver
    2016
    Posts
    4

    Re: If Month then...

    Hi Guys thanks but I am not explaining it right

    I will try again
    I redid the file to make it less messy...and sticking to just one example.


    If the Current Month is August then on the 'View Sheet' cells C8, D8, and E8 should display from the 'Data Sheet' cells C6:C8


    If the Current Month is October then on the 'View Sheet' cells C8, D8, and E8 should display the information from the 'Data Sheet' cells E6:8

    I hope that helps...thanks again
    Attached Files Attached Files

  8. #8
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: If Month then...

    Did you try the suggestion from post #6? That's exactly what it does.

  9. #9
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: If Month then...

    Try this in C8
    =HLOOKUP(TEXT(TODAY(),"mmmm"),Data!$C$5:$G$8,COLUMNS($A$1:B$1),0)

  10. #10
    Registered User
    Join Date
    10-17-2017
    Location
    Billings, MT
    MS-Off Ver
    2016
    Posts
    4

    Re: If Month then...

    Thanks guys great stuff!!
    Yes sorry 63Falcon that worked like a charm!!

    Thank you guys so much! Now i need to research to know why/how it works and how to use it again

  11. #11
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: If Month then...

    Glad we could help.

    The formulas in post #6 pull the rightmost non-zero value.
    The assumption was that in November, data will be populated in the November column and then that becomes the rightmost value (thus being pulled into the 'View' sheet).

    If that solved your question, please mark this thread as SOLVED.
    Last edited by 63falcondude; 10-18-2017 at 10:18 AM. Reason: Typo

+ 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. Caclulate month of quarter (1st month - 3rd month)
    By kuraitori in forum Excel General
    Replies: 5
    Last Post: 07-15-2018, 03:53 PM
  2. [SOLVED] Calculation of days per month for dates beginning in one month and ending in another month
    By Fahrettin in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-07-2015, 04:52 PM
  3. [SOLVED] Determine work days in current month or next month based on day of the month
    By sbrnard in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-29-2014, 05:14 PM
  4. [SOLVED] Counting & summing formula (until last month,this month,until this month..
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-12-2014, 01:14 PM
  5. [SOLVED] Auto instert Month names for This month, Last month and Next month
    By hemal89 in forum Word Programming / VBA / Macros
    Replies: 4
    Last Post: 12-10-2013, 12:01 PM
  6. Replies: 4
    Last Post: 05-24-2013, 01:24 PM
  7. [SOLVED] display cell to show only Month/year to do sumif calc if today()= any day of month
    By fireguy7 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-12-2013, 06:55 PM

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