+ Reply to Thread
Results 1 to 4 of 4

Get data if the month is less than the month and mentioned above

  1. #1
    Registered User
    Join Date
    12-14-2021
    Location
    Bangkok
    MS-Off Ver
    MS Office 365, Verision 16.55
    Posts
    62

    Get data if the month is less than the month and mentioned above

    I have two sheet Sheet 2 and Jan, what i want is get the Confirmation Code in Sheet 2 data to Booking No. data --- if the data in Sheet 2 Start Date is less than month in Cell A2 and Year in cell B2 in Sheet Jan.

    I tried index match but it does not work
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,217

    Re: Get data if the month is less than the month and mentioned above

    Where have you mocked up your expected result(s)? I do not undertsnad the requirement.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    12-14-2021
    Location
    Bangkok
    MS-Off Ver
    MS Office 365, Verision 16.55
    Posts
    62

    Re: Get data if the month is less than the month and mentioned above

    In Sheet Jan i copied booking numbers from Column A Sheet 2 and the Start Date (sheet 2) data to Jan sheet (check-in) date.

    So basically in Jan sheet cell B2 is 1(month Jan) and B3 is 2025 (year) -- so if the data in Sheet 2 Start Date is less than this month in B2 cell (Jan) and B3(Jan) then it will grab the data
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,868

    Re: Get data if the month is less than the month and mentioned above

    One guess,
    Please Login or Register  to view this content.
    PS. Your date format in column G is messed up.
    Attached Files Attached Files

+ 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. Replies: 2
    Last Post: 01-13-2023, 05:25 AM
  2. [SOLVED] Data split in different sheets and amount to be mentioned in the same month
    By shyampanda in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-13-2021, 02:45 PM
  3. [SOLVED] Return Month-on-Month growth using current month-prior month/prior month per country
    By losincog in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-21-2020, 05:37 AM
  4. VBA to send email on 1st of particular month mentioned in excel file
    By jjabrams1110 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-18-2020, 09:28 AM
  5. [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
  6. [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
  7. [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

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