thewayne: (Default)
[personal profile] thewayne
Well, it's not a cool function, it's an option on a function. Specifically, the Weekday function.

I'm finishing up our taxes. Normally I'd finish them in February or March, but it's been a heck of a few months. One of the things that I do is dump all my prescription drug purchases into a spreadsheet and calculate the day of the week, so I can take a mileage deduction on my state taxes for weekend pickups since I'm not working those days.

Nevermind whether or not we're going to dinner or a movie....

Anyway, the function ends up being:

=IF(WEEKDAY(A1,2)>5,42,"")

A1 is my date field of when the transaction takes place. By default, i.e. without a number changing the day of the week for the date the starting DOW is Sunday = 1. By supplying the 2, you're telling Excel that Monday = 1, therefore if the DOW is greater than 5, it's Saturday or Sunday, therefore the weekend! If that's true, plug in 42 (round trip to Alamogordo and back), otherwise make it a blank cell.

Five trips for an additional 210 miles, at $0.21 per mile towards my state taxes! I have to manually eliminate dupes for multiple transactions on the same day, being multiple drugs refilled and picked up at the same time.

I use spreadsheets a fair amount, but not for anything particularly complex, just as a general purpose tool, so I was kinda chuffed to find this. The question is whether or not I'll remember it for next year!

Date: 2026-04-14 10:05 pm (UTC)
garote: (Default)
From: [personal profile] garote
Set an alarm with a one-year delay, to remind you

Date: 2026-04-14 11:52 pm (UTC)
warriorsavant: Computer-Steampunk (Computer-Steampunk)
From: [personal profile] warriorsavant

Gosh, a post about Excel. Will populate my wet dreams for the next week.

Date: 2026-04-15 11:00 am (UTC)
warriorsavant: Sword & Microscope (Default)
From: [personal profile] warriorsavant

Same, bro, same.

Date: 2026-04-14 11:55 pm (UTC)
disneydream06: (Disney Surprised)
From: [personal profile] disneydream06
You know me, I wish that I knew computer speak. LOL.....
Hugs, Jon

Date: 2026-04-15 02:11 pm (UTC)
disneydream06: (Disney Happy)
From: [personal profile] disneydream06
LOL!!!!!!!!!!!!!!!!!!!!

Date: 2026-04-15 06:17 am (UTC)
darkoshi: (Default)
From: [personal profile] darkoshi
You can create a "template" spreadsheet with the headers and formulas, and keep it in whatever folder you'll be using for your taxes next year (create the folder now already so you'll find it then).
That's how I do it.

One of my spreadsheets has a column that displays the name of the day of week of the date in the preceding column. It uses a formula like =TEXT(A3,"ddd"). If I want to check for rows corresponding to certain days, I can compare that cell to "Sat", "Sun", etc.
But that WEEKDAY function is a good one to know, and a more straight-forward way of doing it.

Date: 2026-04-15 11:24 pm (UTC)
darkoshi: (Default)
From: [personal profile] darkoshi
Our work uses a fiscal year too, and it is often ambiguous when I hear that something will be "at the end of the year" as to which one they are talking about.

Date: 2026-04-16 12:41 am (UTC)
moonhare: (little bear)
From: [personal profile] moonhare
Heh, I never warmed up to Excel. The only time I used spreadsheets was at tax time when I would drop Amazon purchases into Google Sheets and figure out what I had to declare for the state. Now I don’t need that as Amazon collects the tax up front…

May 2026

S M T W T F S
     12
34 56 789
10111213141516
17181920212223
24252627282930
31      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 8th, 2026 07:14 am
Powered by Dreamwidth Studios