TGViewer
Data Analytics Data Analytics @sqlspecialist · 111K subscribers
Post #3044 5.04K
For example: "25/08/2026" may be stored as text.

Then functions such as: =YEAR(A2) may not work as expected.

You need to ensure the value is converted into a genuine Excel date before performing calculations.

This is a crucial data-cleaning concept.

🧪 Practical Interview Challenge

Suppose you have:

Employee: John, Joining Date: 15-Jan-2022, End Date: 25-Aug-2026

Sarah, 20-Mar-2021, 25-Aug-2026

Mike, 10-Jul-2023, 25-Aug-2026

Q1. Extract the joining year: =YEAR(B2)

Q2. Extract the joining month: =MONTH(B2)

Q3. Calculate completed years: =DATEDIF(B2,C2,"Y")

Q4. Calculate total days: =C2-B2

Q5. Find month-end for joining month: =EOMONTH(B2,0)

Q6. Find six months after joining: =EDATE(B2,6)

Q7. Calculate working days: =NETWORKDAYS(B2,C2)

🏆 Key Lesson

Dates aren't just values displayed on a spreadsheet. They allow you to analyze time.

A Data Analyst should be able to answer:

When did it happen? How long did it take? How many working days did it take? Which month did it happen in? Which quarter/year did it happen in? Is it overdue? When will it be due?

Once you become comfortable with date functions, you'll be able to build much more useful analysis around trends, aging, SLAs, employee tenure, financial periods and time-based KPIs.

Double Tap ❤️ For Part-8
  • ❤ 12
More from @sqlspecialist
  1. Oct 7, 2026🚀𝗣𝗮𝘆 𝗔𝗳𝘁𝗲𝗿 𝗣𝗹𝗮𝗰𝗲𝗺𝗲𝗻𝘁 𝗧𝗿𝗮𝗶𝗻𝗶𝗻𝗴 | 𝗕𝗲𝗰𝗼𝗺𝗲 𝗮 𝗙𝘂𝗹𝗹𝘀𝘁𝗮𝗰…
  2. Oct 7, 2026🔟 What is the difference between UNION and JOIN? Sample Answer: "JOIN combines columns fr…
  3. Oct 7, 2026📊 Data Analyst Interview Series — Part 4 Guys, let's continue our Data Analyst Interview…
  4. Oct 7, 2026𝗠𝗮𝘀𝘁𝗲𝗿 𝗣𝗼𝘄𝗲𝗿 𝗕𝗜 𝗳𝗼𝗿 𝗙𝗥𝗘𝗘! 🔥 Learn Power BI through these FREE learnin…
  5. Oct 4, 20269️⃣ How would you calculate month-over-month growth? Sample Answer: “I would first retriev…
  6. Oct 4, 2026📊 Data Analyst Interview Series — Part 3 Guys, let's continue our Data Analyst Interview…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →