+ Reply to Thread
Results 1 to 11 of 11

Collate data from another sheet depending on month selected in dropdown list

  1. #1
    Registered User
    Join Date
    11-12-2017
    Location
    Stafford, England
    MS-Off Ver
    365
    Posts
    184

    Collate data from another sheet depending on month selected in dropdown list

    Hi all,

    Sorry to cover something that has probably been done multiple times and is probably quite basic, I have searched long and hard but when I search anything to do with dropdown lists, I get results of how to create them.

    So... looking at the Sample attached, for this sample all data in cells are fixed numbers and references.

    In the original file, all data in cells sheet2!H6:L22, sheet2!N6:R22, sheet2!T6:X22, etc, will be auto collated from other worksheets so that all 17 reports for all 5 samples are collated to one sheet. Sheet2 is setup to be the 'helper sheet'.

    I am looking for a formula for sheet1!J4:N20 that when month in sheet1!M2 is selected it matches the month in sheet2 row 4 and returns the correct range of cells from sheet2?

    So when...
    sheet1!M2 = February it returns sheet2!H6:L22
    sheet1!M2 = March it returns sheet2!N6:R22
    sheet1!M2 = April it returns sheet2!T6:X22 ...etc

    I'm open to achieving this by formula or VBA, I was only looking for a formula based answer in case I use this via the web version of Excel.

    TIA
    Attached Files Attached Files

  2. #2
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,435

    Re: Collate data from another sheet depending on month selected in dropdown list

    Here are 2 different solutions. Both solutions returns the whole table in one go:

    Please try in Sheet1!J4:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    or try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    11-12-2017
    Location
    Stafford, England
    MS-Off Ver
    365
    Posts
    184

    Re: Collate data from another sheet depending on month selected in dropdown list

    Thanks HansDouwe for the quick reply

    Unfortunately this doesn't seem to be working on your uploaded sample or when I put the formula in to my sample on my hard drive.

    All months except April, September, October & November are returning results for August. April, October & November are the only ones returning the correct results and September is returning all 0 results

  4. #4
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,435

    Re: Collate data from another sheet depending on month selected in dropdown list

    You are right, I forgot an exact match,

    Please replace in the formulas MATCH with XMATCH.

    Here is the sheet with the corrected formulas.
    Attached Files Attached Files
    Last edited by HansDouwe; 10-20-2023 at 07:51 AM.

  5. #5
    Registered User
    Join Date
    11-12-2017
    Location
    Stafford, England
    MS-Off Ver
    365
    Posts
    184

    Re: Collate data from another sheet depending on month selected in dropdown list

    Yes that's perfect, exactly what I was looking to achieve. Thanks you

  6. #6
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,435

    Re: Collate data from another sheet depending on month selected in dropdown list

    You are Welcome!

    Thanks for the feedback and rep . Glad to have helped.

  7. #7
    Registered User
    Join Date
    11-12-2017
    Location
    Stafford, England
    MS-Off Ver
    365
    Posts
    184

    Re: Collate data from another sheet depending on month selected in dropdown list

    Sorry but need to reopen this thread.

    As stated above this works faultless on my home computer where I designed it. Sample file is a stripped out version of my working doc.

    I've tried both my working doc and the sample file at work and it doesn't work. Overview!J4:N20 comes back with errors, unfortunately I'm not at work now to provide sample of error but my question is, I'm running 64bit at home but we have 32bit at work. Would this cause the formula in said range to not work properly?

    I'm now thinking VBA might be the way to go to eliminate this problem

  8. #8
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,435

    Re: Collate data from another sheet depending on month selected in dropdown list

    No 64bit or 32bit should not cause a difference.

    If the formula returns #NAME-error, then you probably have at home an older MS-Off Version.
    In that case please try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    This formula should work also in older MS-Off versions.

    If the formula returns an other error, please upload a sample sheet and show us the error.
    Last edited by HansDouwe; 10-23-2023 at 06:06 PM.

  9. #9
    Registered User
    Join Date
    11-12-2017
    Location
    Stafford, England
    MS-Off Ver
    365
    Posts
    184

    Re: Collate data from another sheet depending on month selected in dropdown list

    You are a legend, thanks for your reply again.

    Is it the older version that would return the #NAME-error cause I have Microsoft 365 at home and work I think is older? It was definitely the #NAME error that was showing.

    I'll try it tomorrow when back in work and let you know how I get on

  10. #10
    Registered User
    Join Date
    11-12-2017
    Location
    Stafford, England
    MS-Off Ver
    365
    Posts
    184

    Re: Collate data from another sheet depending on month selected in dropdown list

    This seems to have worked on both my version at home and the older at work, so seems to be fixed.

    Thank you again, not sure why I thought it might be a bit version issue when it makes more sense being a older/newer issue... one to remember for me

  11. #11
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,435

    Re: Collate data from another sheet depending on month selected in dropdown list

    Thanks for your feedback . Glad to have helped.

+ 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. Collate data from cell for each month to another sheet
    By ~TaC~ in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-08-2022, 08:49 PM
  2. Input box depending on a value selected from dropdown list
    By gmshaikh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-25-2018, 08:44 AM
  3. Populate a table depending on dropdown data selected
    By ftrindade in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 04-25-2017, 07:08 AM
  4. Replies: 3
    Last Post: 01-22-2013, 01:13 AM
  5. Return Data depending on dropdown list
    By GenericPat in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-02-2012, 04:21 PM
  6. Return Data depending on dropdown list
    By GenericPat in forum Excel General
    Replies: 2
    Last Post: 11-02-2012, 04:20 PM
  7. [SOLVED] Excel month dropdown list to generate day of week and date for selected month
    By aaaaaaaa in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-17-2010, 02:45 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