CheckEmoji Community · the emoji forum
🏠 Home 🆕 What's new ❓ Unanswered 🔥 Popular 📡 RSS Members 👥 0 online log in · register
Home › IT › Software › Excel - time calculations

Excel - time calculations

Started by Casey Cook10 · · 👁 4 views · 3 replies

📡 Subscribe to replies

Participants Casey Cook10Jeffrey Reyesgoldenmarlin70
Casey Cook10 Casey Cook10 Active MemberOP
77 messages
joined May 2024
#1 ·
I was wondering if anyone could help me figure out how to make an Excel column show the difference between two previous cells when they're both using an hh:mm time format? I'd really love for the result to stay in that same hh:mm format too, if that's even possible.

Thanks!
Jeffrey Reyes Jeffrey Reyes Newcomer
1 message
joined Feb 2006
#2 ·
If you've got one time in column A and a different one in column B, just toss =A1-B1 into column C, though I guess you'll need to make sure all three columns are formatted as hh:mm if you actually want the math to look right.
Casey Cook10 Casey Cook10 Active MemberOP
77 messages
joined May 2024
#3 ·
So, it’s giving me the results for cells A1 and B1, but I was wondering if there might be some way to just format the entire column so it automatically spits out that difference whenever I fill in those first two columns?
goldenmarlin70 goldenmarlin70 Newcomer
4 messages
joined Jan 2006
#4 ·
doc_1 said:It's giving me solutions for cells A1 and B1. Is there any way to format the whole column so it spits out that difference the second I fill in the first two columns?

Formatting won't cut it, but a simple conditional will get you there.
So, you've got times in columns A and B, and you want the time difference to show up row by row in C as soon as you punch in the values for A and B (?) if that's the deal, just toss this formula into C1 (right next to A1 and B1) and drag it down as many rows as you need... basically, use this:

=IF(A1>0;A1-B1;"")

And boom, you're done...

You must log in or register to reply here.

Log in Register

🔗 Similar threads