+ Reply to Thread
Results 1 to 5 of 5

Need to access sheet column by date

  1. #1
    Registered User
    Join Date
    05-18-2020
    Location
    Highlands, Scotland
    MS-Off Ver
    365
    Posts
    2

    Need to access sheet column by date

    I'm building a small Excel table to provide accomodation availability information. I want to have a column which extracts the current days availability from a separate worksheet in the same workbook.Does not need to be any detail, just a Y/N result.

    Is this possible?

    Thanks

    John

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

    Re: Need to access sheet column by date

    Welcome to the forum.

    Yes, it's possible. Can't say more than that based on such scant information.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    05-18-2020
    Location
    Highlands, Scotland
    MS-Off Ver
    365
    Posts
    2

    Re: Need to access sheet column by date

    Great thanks,

    On the main worksheet I just want to have a column which shows if a property has a vacancy that day.
    The data will be drawn from a worksheet which list the availability for the next seven days.

    So what I want is that Column F on the front sheet will look up whatever today's date is on the relevant property sheet by using the
    DATE functionality to identify which cells to take the information from.
    So if any one of the rooms has availability the front page cell will contain 'Y', if none of the rooms are available then the front
    page cell will contain an 'N'.

    Hope this is clearer.

    A stripped out version of the file should be attached - but can't see any indication of that on this page!

    John
    Attached Files Attached Files

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Need to access sheet column by date

    Hello John. Welcome to the forum.

    Since the upload didn't contain any indications of occupancy referencing and matching a target date with this formula is as far as I could take this. Formula will obviously need to be 'wrapped' in an index reference, but this takes care of the match part. With the target date in cell B1 use this formula in F3.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Need to access sheet column by date

    I would go further with this:

    =IF(SUMPRODUCT((INDIRECT("'"&[@[Property name]]&"'!C15:BR15")=TODAY())*(INDIRECT("'"&[@[Property name]]&"'!A17:A60")<>"")*(INDIRECT("'"&[@[Property name]]&"'!C17:BR60")=""))>0,"Y","N")

    If you want to return the number of rooms available, then this:

    =SUMPRODUCT((INDIRECT("'"&[@[Property name]]&"'!C15:BR15")=TODAY())*(INDIRECT("'"&[@[Property name]]&"'!A17:A60")<>"")*(INDIRECT("'"&[@[Property name]]&"'!C17:BR60")=""))

+ 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-10-2017, 10:25 AM
  2. [SOLVED] SQL to get data from Access table to use only the date and not the time from column
    By Megatronixs in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-19-2015, 08:11 AM
  3. Replies: 12
    Last Post: 01-28-2014, 12:36 PM
  4. Getting data from Access then putting this in new sheet depending on date?
    By alka5eltzer in forum Access Tables & Databases
    Replies: 1
    Last Post: 11-14-2013, 08:40 AM
  5. Generating an Excel sheet and importing it into Access with VBA triggered in Access
    By JungleJme in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-29-2012, 07:43 AM
  6. Copy column data on one sheet to row or column date on another sheet based on user in
    By soready42012 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-08-2012, 12:03 AM
  7. make every column a new sheet and then import each as a separate table in Access
    By DrOktagon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-07-2011, 03:40 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