You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

need to bulk change year in date column

Date column in spreadsheet has wrong year and can only change one cell at a time

iMac 27″, macOS 10.15

Posted on Jan 25, 2021 9:33 PM

Reply
7 replies

Jan 26, 2021 12:08 AM in response to Gillylal Fordham-Lear

Any reason for posting the question TWICE in a span of six minutes?


This is a user-to-user community,populated by users of the software and hardware under discussion. The people posting here are not 'on the clock', and participate on their own time.


Do the Date column that needs to be changed contain the full date, or only the year?


Assuming it's the whole date and time value (with the time part not displayed), does each date need to be changes to the same day of the same month one year later?


Assuming that to be the case, the following should do the job:


For the example, I'll assume the dates are in column B.

  • Click on any cell in column B to select that cell.
  • Press option-right arrow to insert a new column to the right of column B. (It will become column C)

  • Click the cell in column C adjacent to the first date in column B (for the example, that is C2)
  • Type = to open the Formula Editor, and enter this formula:

EDATE(B2,12)

  • Click the green checkmark to confirm the formula and close the editor.

  • With C2 still selected, press command-C to copy the cell and its formula.
  • With C2 still selected, scroll down to the last cell in column C.
  • Press shift and click on the last celll in column C to add it and all cells between it to the selection.
  • Press command-V to paste the formula into all cells in column C. You should see the results immediately.
  • With all cells in column C still selected* Press command-C to copy.
  • Go to the Edit menu and choose Paste formula results.


  • Option 1:
    • With column C still selected, open the format inspector, choose cell, and set the data format to match the format used in the original column B.
    • Delete Column B, making C the new column B, then label this column with the same label as was in the previous column B.


OR


  • Option 2:
    • Copy the cells in column S again (this time copying the formula results that you just pasted in).
    • Click on cell B2, and Paste.
    • With column B selected, open the format inspector, choose cell, and set the data format to match the format used originally in column B.
    • Delete the temporary column C.


It looks like a lengthy procedure, but should take less time to do than it did to describe.


Regards,

Barry

Jan 25, 2021 11:43 PM in response to Gillylal Fordham-Lear

Hi Gillylal Fordham-Lear,


Here is a step-by-step method using several extra columns:



Formula in C2 YEAR(B2)

Formula in D2 MONTH(B2)

Formula in E2 DAY(B2)

Formula in F2 DATE(C2+1,D2,E2)


Here is a method that combines all the formulas into a single formula:



Formula in C2 DATE(YEAR(B2)+1,MONTH(B2),DAY(B2))


Don't worry about how Numbers displays the Date. You can format New Date to suit:



Select the New Date column and Copy.

Menu > Edit > Paste Formula Results to "fix" the dates.

Please reply with questions.


Regards,

Ian.



Jan 26, 2021 12:22 AM in response to Barry

I think there must have been because I'm not stupid. Oh yes! I remember: I went to discussions.apple.com and signed in with my apple ID. Maybe I then clicked on something I shouldn't have because I was given a new name (i.e. not gillylal fordham-lear). Couldn't see how to undo that so went ahead and posted my question. Then thought that having 2 usernames for this forum may create problems in the future and looked for a way to delete the first post & get rid of the 2nd username. I expect you'll tell me how to do that.

Jan 26, 2021 12:36 AM in response to Yellowbox

Thank you very much - got the hang of that, then couldn't delete the extra columns without undoing new formatting, so hid them.

Tried next to copy the date with corrected year into another table. Couldn't make that work with either copy or copy formula. Maybe I have to go through the same process with every table that has the wrong year...?

Another question: Did this happen in the first place because in January 2001, I created tables that pertained to earlier years...?

Thanks v much for your time and and for sharing your expertise.

Jan 26, 2021 1:15 AM in response to Gillylal Fordham-Lear

"Hope you now realise that this was an honest mistake by someone who's not as experienced as you, and not a willful attempt to waste anyone's time."


I was pretty sure an attempt to waste time was not the case.


I see that Ian and I have both responded to the same copy of the question. I did send a report in on the other one requesting it be deleted as it was a duplicate. I hadn't noticed at that time that they had different names.

Just went back to check—The other one has the earmarks of a 'first post (level 1 and 4 points)', so I must have chose(n) wisely (or at least luckily).


Deleting the a post is something that can only be done by the hosts (moderators). The person posting can edit the post within a period of about 15 minutes after posting, but can't remove it.


I wouldn't worry about having a second name registered. Shouldn't be an issue if you stick with this one and just avoid using the other. I did do a short search, which turned up several sites with instructions on cancelling an Apple ID, but none from "official" sources.


Regards,

Barry

need to bulk change year in date column

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.