+ Reply to Thread
Results 1 to 3 of 3

Can I name tabs with dates, reference them in cells, and INCREMENT DATE while copying?

  1. #1
    Registered User
    Join Date
    08-01-2012
    Location
    Natchitoches, LA USA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Can I name tabs with dates, reference them in cells, and INCREMENT DATE while copying?

    I have labeled my sheets tabs in the format 01Jan13, 02Jan13, etc.

    The formula works, but when I try to copy it across the date doesn't increment.

    (Each of my columns is labeled the same as the sheets and I want the columns to reference the correct sheet.)

    =IFERROR(VLOOKUP($J3,'01Jan13'!$F$4:$G$250,2,0),"")

    I'm THINKING the date (in the formula) is seen as text.

    I'm open to whatever changes I need to make.

    Regards,
    Cane

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Can I name tabs with dates, reference them in cells, and INCREMENT DATE while copying?

    Hi,

    Assuming your sheet names are in A1,B1,.....etc. then

    =IFERROR(VLOOKUP($J3,INDIRECT("'"&A1&"'!$F$4:$G$250"),2,0),"")

    Note that A1, B1 etc need to be text. i.e. '01Jan13'. If you simply enter 01Jan13 then Excel is likely to default that to be a date number 41275.

    Alternatively if your sheet name column headers are indeed date numbers then you could use

    =IFERROR(VLOOKUP($J3,INDIRECT("'"&TEXT(A1,"ddmmmyy")&"'!$F$4:$G$250"),2,0),"")
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    08-01-2012
    Location
    Natchitoches, LA USA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Can I name tabs with dates, reference them in cells, and INCREMENT DATE while copying?

    Hello Richard-

    Thank you for your answer and your kind attention.

    Second Method worked!!! Many thanks!

    Best regards,
    Cane
    Last edited by CaneRivero; 12-26-2012 at 04:51 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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