Excel

Okay . . . let's try this again.

Moderators: Shirley, Sabo, brian, rass, DaveInSeattle

User avatar
Johnny Carwash
The Dude
Posts: 6003
Joined: Mon Mar 11, 2013 8:57 am
Location: Land of 10,000 Sununus

Re: Excel

Post by Johnny Carwash »

A_B wrote: Tue Oct 29, 2024 3:45 pm If you don't have to do further manipulation a copy(or cut)/paste then sort would be the easiest.
I have to do it like 65 times though. Wanted to see if there was a less manual shortcut.
Fanniebug wrote: P.S. rass! Dont write me again, dude! You're in ignore list!
User avatar
A_B
The Dude
Posts: 24975
Joined: Mon Mar 11, 2013 7:36 am
Location: Made with bits of real panther.

Re: Excel

Post by A_B »

Johnny Carwash wrote: Tue Oct 29, 2024 3:48 pm
A_B wrote: Tue Oct 29, 2024 3:45 pm If you don't have to do further manipulation a copy(or cut)/paste then sort would be the easiest.
I have to do it like 65 times though. Wanted to see if there was a less manual shortcut.
Got you, I figured that so I gave with the "easiest" way but not the least work-intensive while I was noodling.

You can reference the cells (A7=B4), but you'd have to do some manual entry there as well so it isn't very elegant. And then the other option would be some macro/VBA shit I can't even recall how to do at the moment.

This may be promising but also isn't "easy" if the syntax isn't perfect:

Enter below formula in cell A8 and copy down:


=IFERROR(INDEX(A$2:G$5,INT((ROW(A1)-1)/COLUMNS(A$2:G$5))+1,MOD(ROW(A1)-1,COLUMNS(A$2:G$5))+1),"")



You may start at any cell. Just u
pdate the range "A$2:G$5" per your requirement. Ensure that in the start cell you enter "ROW(A1)" as in the above formula which appears twice.
One milkshake to bring all the boys to the yard and in the darkness bind them.
User avatar
A_B
The Dude
Posts: 24975
Joined: Mon Mar 11, 2013 7:36 am
Location: Made with bits of real panther.

Re: Excel

Post by A_B »

So that last one worked for me. I tested it with numbers and text. I just copied that text from my browser to the excel function box. To see it on screen, here is the link, and it's almost all the way down:

https://answers.microsoft.com/en-us/mso ... bc33c5f711
One milkshake to bring all the boys to the yard and in the darkness bind them.
User avatar
Johnny Carwash
The Dude
Posts: 6003
Joined: Mon Mar 11, 2013 8:57 am
Location: Land of 10,000 Sununus

Re: Excel

Post by Johnny Carwash »

Actually just found a way to do it in Power Query. Thanks though.
Fanniebug wrote: P.S. rass! Dont write me again, dude! You're in ignore list!
Gunpowder
The Dude
Posts: 8942
Joined: Mon Mar 11, 2013 7:52 am
Location: Dipshitville, FL
Contact:

Re: Excel

Post by Gunpowder »

Ryan wrote: Mon Jun 03, 2024 2:20 pm Huh. I bet it just thinks the dates are fractions like usual and it's getting really lucky.
It stores dates as "days since Jan 1, 1900" so if you enter say Dec 31 1900, it calculates it as 366. Leap years be leapin'
Pack a vest for your james in the city of intercourse
User avatar
Steve of phpBB
The Dude
Posts: 9545
Joined: Mon Mar 11, 2013 10:44 am
Location: Feeling gravity's pull

Re: Excel

Post by Steve of phpBB »

Gunpowder wrote: Wed Oct 30, 2024 8:25 am
Ryan wrote: Mon Jun 03, 2024 2:20 pm Huh. I bet it just thinks the dates are fractions like usual and it's getting really lucky.
It stores dates as "days since Jan 1, 1900" so if you enter say Dec 31 1900, it calculates it as 366. Leap years be leapin'
Was 1900 a leap year?
"He swore fluently, obscenely, and without repeating himself for just over a minute."
Mick Herron, "Down Cemetery Road"
User avatar
Rex
The Dude
Posts: 7852
Joined: Mon Mar 18, 2013 3:10 pm

Re: Excel

Post by Rex »

Steve of phpBB wrote: Wed Oct 30, 2024 8:30 am
Gunpowder wrote: Wed Oct 30, 2024 8:25 am
Ryan wrote: Mon Jun 03, 2024 2:20 pm Huh. I bet it just thinks the dates are fractions like usual and it's getting really lucky.
It stores dates as "days since Jan 1, 1900" so if you enter say Dec 31 1900, it calculates it as 366. Leap years be leapin'
Was 1900 a leap year?
It wasn’t!
Gunpowder
The Dude
Posts: 8942
Joined: Mon Mar 11, 2013 7:52 am
Location: Dipshitville, FL
Contact:

Re: Excel

Post by Gunpowder »

Then not sure why it stores that as 366 and not 365.
Pack a vest for your james in the city of intercourse
Gunpowder
The Dude
Posts: 8942
Joined: Mon Mar 11, 2013 7:52 am
Location: Dipshitville, FL
Contact:

Re: Excel

Post by Gunpowder »

Today I learned that years divisible by 100 are not leap years unless they are also divisible by 400. Anyway Excel counts 2/29/1900 as a day.
Pack a vest for your james in the city of intercourse
User avatar
A_B
The Dude
Posts: 24975
Joined: Mon Mar 11, 2013 7:36 am
Location: Made with bits of real panther.

Re: Excel

Post by A_B »

It's actually days since 12/31/1899.
One milkshake to bring all the boys to the yard and in the darkness bind them.
User avatar
Shirley
The Dude
Posts: 8391
Joined: Mon Mar 11, 2013 2:32 pm

Re: Excel

Post by Shirley »

Gunpowder wrote: Wed Oct 30, 2024 8:39 am Today I learned that years divisible by 100 are not leap years unless they are also divisible by 400.
I still remember that from when I had to program a date calculation way back in my very first programming job after college. And that was pre-widespread usage of the Internet (and we didn't have a live connection at that job), so I have no idea what resource I got that info from.
Totally Kafkaesque
User avatar
Steve of phpBB
The Dude
Posts: 9545
Joined: Mon Mar 11, 2013 10:44 am
Location: Feeling gravity's pull

Re: Excel

Post by Steve of phpBB »

Shirley wrote: Wed Oct 30, 2024 9:09 am
Gunpowder wrote: Wed Oct 30, 2024 8:39 am Today I learned that years divisible by 100 are not leap years unless they are also divisible by 400.
I still remember that from when I had to program a date calculation way back in my very first programming job after college. And that was pre-widespread usage of the Internet (and we didn't have a live connection at that job), so I have no idea what resource I got that info from.
As a kid I read books full of that kind of nerdy trivia.
"He swore fluently, obscenely, and without repeating himself for just over a minute."
Mick Herron, "Down Cemetery Road"
User avatar
Ryan
The Dude
Posts: 10893
Joined: Mon Mar 18, 2013 10:01 am

Re: Excel

Post by Ryan »

Any way to copy values from non-consecutive ranges and have them appear in the same cells when you paste?
he’s a fixbking cyborg or some shit. The

holy fuckbAllZ, what a ducking nightmare. Holy shot. Just, fuck. The
User avatar
A_B
The Dude
Posts: 24975
Joined: Mon Mar 11, 2013 7:36 am
Location: Made with bits of real panther.

Re: Excel

Post by A_B »

Ryan wrote: Wed Jan 15, 2025 12:12 pm Any way to copy values from non-consecutive ranges and have them appear in the same cells when you paste?
I don't exactly understand the question, but there are some different options under "Paste Special" that may do what you are trying to do.
One milkshake to bring all the boys to the yard and in the darkness bind them.
User avatar
mister d
The Dude
Posts: 31869
Joined: Tue Mar 12, 2013 8:15 am

Re: Excel

Post by mister d »

I too don't fully understand the question.
A_B wrote: Mon Mar 31, 2025 2:54 pmand henceforth I imagine I’ll be Old …we…t spot AB.
User avatar
Ryan
The Dude
Posts: 10893
Joined: Mon Mar 18, 2013 10:01 am

Re: Excel

Post by Ryan »

Trying to copy A1, A2, A3 and A7, A8, A9 from one sheet and paste them into matching cells in another sheet. Instead it just pastes them all together from A1 to A6. There are values in the middle that I want to skip and not overwrite in the second sheet.
he’s a fixbking cyborg or some shit. The

holy fuckbAllZ, what a ducking nightmare. Holy shot. Just, fuck. The
User avatar
A_B
The Dude
Posts: 24975
Joined: Mon Mar 11, 2013 7:36 am
Location: Made with bits of real panther.

Re: Excel

Post by A_B »

In the paste special box is skip blanks checked?
One milkshake to bring all the boys to the yard and in the darkness bind them.
User avatar
mister d
The Dude
Posts: 31869
Joined: Tue Mar 12, 2013 8:15 am

Re: Excel

Post by mister d »

Oh ... I don't know of a way to post a range except for some sub-range in the middle. I think you'd have to either do it multiple times or set up cell references in the ones you want populate and skip the ones you don't.
A_B wrote: Mon Mar 31, 2025 2:54 pmand henceforth I imagine I’ll be Old …we…t spot AB.
User avatar
wlu_lax6
The Dude
Posts: 11160
Joined: Tue Mar 12, 2013 7:16 am

Re: Excel

Post by wlu_lax6 »

Ryan wrote: Wed Jan 15, 2025 12:28 pm Trying to copy A1, A2, A3 and A7, A8, A9 from one sheet and paste them into matching cells in another sheet. Instead it just pastes them all together from A1 to A6. There are values in the middle that I want to skip and not overwrite in the second sheet.
instead of a copy can you do a formula
so in your destination you set a value to =sheetname(a1). Then copy that to the destination fields you want and skip the cells you don't. The formula should update the source cells automatically (if you don't pin the a1 using $a$1 for example). Not my syntax for the formula could be off but if you do = and then just select the source it will build the forumla for you

the you just copy and paste special value to remove the formula
User avatar
Jerloma
The Dude
Posts: 7970
Joined: Mon Mar 11, 2013 2:10 pm

Re: Excel

Post by Jerloma »

I need to automate this spreadsheet to calculate response time, but as you see I run into errors when the dates are not the same. Is there a way where I can bring the dates into the formula =(F2-D2) and have it calculate accordingly?

Image
And the unicorns shall come down with them, and the bullocks with the bulls; and their land shall be soaked with blood, and their dust made fat with fatness. - God
User avatar
mister d
The Dude
Posts: 31869
Joined: Tue Mar 12, 2013 8:15 am

Re: Excel

Post by mister d »

I don't think you can do it in the format you have now ... there would have to be some sort of join between the dates (measure of days or 24 hours) and the time on the clock (which can be negative and subtract from full days).
A_B wrote: Mon Mar 31, 2025 2:54 pmand henceforth I imagine I’ll be Old …we…t spot AB.
User avatar
mister d
The Dude
Posts: 31869
Joined: Tue Mar 12, 2013 8:15 am

Re: Excel

Post by mister d »

=((F5-D5)+(G5-E5))*(24*60) would work in terms of giving you total minutes, just not in the hour:minute format.
A_B wrote: Mon Mar 31, 2025 2:54 pmand henceforth I imagine I’ll be Old …we…t spot AB.
User avatar
Jerloma
The Dude
Posts: 7970
Joined: Mon Mar 11, 2013 2:10 pm

Re: Excel

Post by Jerloma »

mister d wrote: Wed Jan 22, 2025 3:18 pm =((F5-D5)+(G5-E5))*(24*60) would work in terms of giving you total minutes, just not in the hour:minute format.
Thanks. I concatted them into the same cell and got it to work.
And the unicorns shall come down with them, and the bullocks with the bulls; and their land shall be soaked with blood, and their dust made fat with fatness. - God
User avatar
Jerloma
The Dude
Posts: 7970
Joined: Mon Mar 11, 2013 2:10 pm

Re: Excel

Post by Jerloma »

Why can't I get this bottom row of data to update on my chart you guys?

Screenshot 2025-02-12 112225.jpg
Screenshot 2025-02-12 112225.jpg (117.55 KiB) Viewed 3417 times
And the unicorns shall come down with them, and the bullocks with the bulls; and their land shall be soaked with blood, and their dust made fat with fatness. - God
User avatar
mister d
The Dude
Posts: 31869
Joined: Tue Mar 12, 2013 8:15 am

Re: Excel

Post by mister d »

Looks like the data just isn't in your chart.
A_B wrote: Mon Mar 31, 2025 2:54 pmand henceforth I imagine I’ll be Old …we…t spot AB.
User avatar
Jerloma
The Dude
Posts: 7970
Joined: Mon Mar 11, 2013 2:10 pm

Re: Excel

Post by Jerloma »

Yes, no shit. Remind me how much I'm paying you again?
And the unicorns shall come down with them, and the bullocks with the bulls; and their land shall be soaked with blood, and their dust made fat with fatness. - God
User avatar
mister d
The Dude
Posts: 31869
Joined: Tue Mar 12, 2013 8:15 am

Re: Excel

Post by mister d »

Use AI, bitch!







(Right click inside the chart, "Select Data" ...)
A_B wrote: Mon Mar 31, 2025 2:54 pmand henceforth I imagine I’ll be Old …we…t spot AB.
User avatar
Steve of phpBB
The Dude
Posts: 9545
Joined: Mon Mar 11, 2013 10:44 am
Location: Feeling gravity's pull

Re: Excel

Post by Steve of phpBB »

mister d wrote: Wed Feb 12, 2025 12:26 pm Use AI, bitch!
Image
"He swore fluently, obscenely, and without repeating himself for just over a minute."
Mick Herron, "Down Cemetery Road"
User avatar
Jerloma
The Dude
Posts: 7970
Joined: Mon Mar 11, 2013 2:10 pm

Re: Excel

Post by Jerloma »

This isn't Excel, but I need a math nerd. Trying to calculate the medication error rate for FY'25 Q2 (Oct-Dec 24). It says that the error rate is number of errors per 1,000 bed days, but the number I have is based just on the amount of days in the quarter (3 errors in 92 days). Anyone able to derive the formula from the table below showing previous four quarters?

Screenshot 2025-04-02 132458.jpg
Screenshot 2025-04-02 132458.jpg (25.57 KiB) Viewed 1516 times

I am certain that the rate difference between Q3 (Jan-Mar 24) and Q4 (Apr-Jun 24) is due to Q3 having 91 days and Q4 having 92 days but I just can't figure out how to get there!
And the unicorns shall come down with them, and the bullocks with the bulls; and their land shall be soaked with blood, and their dust made fat with fatness. - God
User avatar
mister d
The Dude
Posts: 31869
Joined: Tue Mar 12, 2013 8:15 am

Re: Excel

Post by mister d »

I don't think there's a way to make the math work given the numbers on the screen unless they're rounded. Q3 and Q4 both have 4, both had 92 days but are returning a different rate.
A_B wrote: Mon Mar 31, 2025 2:54 pmand henceforth I imagine I’ll be Old …we…t spot AB.
User avatar
Jerloma
The Dude
Posts: 7970
Joined: Mon Mar 11, 2013 2:10 pm

Re: Excel

Post by Jerloma »

mister d wrote: Wed Apr 02, 2025 1:10 pm I don't think there's a way to make the math work given the numbers on the screen unless they're rounded. Q3 and Q4 both have 4, both had 92 days but are returning a different rate.
Oh yeah, they both had 91 actually but you're right...that has to be an error.
And the unicorns shall come down with them, and the bullocks with the bulls; and their land shall be soaked with blood, and their dust made fat with fatness. - God
User avatar
mister d
The Dude
Posts: 31869
Joined: Tue Mar 12, 2013 8:15 am

Re: Excel

Post by mister d »

31 + 30 + 31 = 92, son
A_B wrote: Mon Mar 31, 2025 2:54 pmand henceforth I imagine I’ll be Old …we…t spot AB.
User avatar
Jerloma
The Dude
Posts: 7970
Joined: Mon Mar 11, 2013 2:10 pm

Re: Excel

Post by Jerloma »

Q3 24 (fiscal year) is Jan-Mar of 24: 31, 29, 31

I bet whoever did that forgot it was a leap year so they calculated Q3 based on 90 days, and Q4 (Apr-Jun) correctly on 91.

Can you make any sense out of it that way?
And the unicorns shall come down with them, and the bullocks with the bulls; and their land shall be soaked with blood, and their dust made fat with fatness. - God
User avatar
mister d
The Dude
Posts: 31869
Joined: Tue Mar 12, 2013 8:15 am

Re: Excel

Post by mister d »

Hmmm ... even still I don't know that makes sense. Q4 2024 is 91 days or could have been 90. Q3 2024 is 91. They should either be the same or Q4 should be higher due to the wrongly lower denominator, right? Unless this is a calc on weekdays or backs out holidays or who knows. I think you just have to ask whoever did it or find their formula.
A_B wrote: Mon Mar 31, 2025 2:54 pmand henceforth I imagine I’ll be Old …we…t spot AB.
User avatar
Jerloma
The Dude
Posts: 7970
Joined: Mon Mar 11, 2013 2:10 pm

Re: Excel

Post by Jerloma »

They're gone, and these our residential congregate care programs so 365/24/7, but I don't need to resolve that error...just need to calculate the Q2 (Oct-Dec) error rate based on 3 errors over 92 days.
mister d wrote: Wed Apr 02, 2025 2:27 pmQ3 2024 is 91.
Are you just stating a fact or did you math that? I just need to know the calculations used to derive a .57 error rate based on 4, 91, and 1000.
And the unicorns shall come down with them, and the bullocks with the bulls; and their land shall be soaked with blood, and their dust made fat with fatness. - God
User avatar
A_B
The Dude
Posts: 24975
Joined: Mon Mar 11, 2013 7:36 am
Location: Made with bits of real panther.

Re: Excel

Post by A_B »

Fuck your fiscal years!
One milkshake to bring all the boys to the yard and in the darkness bind them.
User avatar
mister d
The Dude
Posts: 31869
Joined: Tue Mar 12, 2013 8:15 am

Re: Excel

Post by mister d »

Jerloma wrote: Wed Apr 02, 2025 3:15 pm They're gone, and these our residential congregate care programs so 365/24/7, but I don't need to resolve that error...just need to calculate the Q2 (Oct-Dec) error rate based on 3 errors over 92 days.
mister d wrote: Wed Apr 02, 2025 2:27 pmQ3 2024 is 91.
Are you just stating a fact or did you math that? I just need to know the calculations used to derive a .57 error rate based on 4, 91, and 1000.
I'm saying I can't back into the formula. There has to be one or more missing components.
A_B wrote: Mon Mar 31, 2025 2:54 pmand henceforth I imagine I’ll be Old …we…t spot AB.
Gunpowder
The Dude
Posts: 8942
Joined: Mon Mar 11, 2013 7:52 am
Location: Dipshitville, FL
Contact:

Re: Excel

Post by Gunpowder »

Wouldn't the number of "bed days" change relatively randomly?
Pack a vest for your james in the city of intercourse
Gunpowder
The Dude
Posts: 8942
Joined: Mon Mar 11, 2013 7:52 am
Location: Dipshitville, FL
Contact:

Re: Excel

Post by Gunpowder »

Just randomly picking a number (4 and 0.54), it appears that you had 7407 bed days in that quarter so if you use that again for 2025 Q2 and 3 errors, your rate is 0.405.

EDIT: Then again, in the 7 errors/1,15 rate quarter, you had 6,087 bed days. So that's just an estimate until you have data on that. The other quarter had 7,018 bed days (approx). If you're just being asked for an estimated rate, you can average those out or otherwise just pick a number in that range.
Pack a vest for your james in the city of intercourse
Gunpowder
The Dude
Posts: 8942
Joined: Mon Mar 11, 2013 7:52 am
Location: Dipshitville, FL
Contact:

Re: Excel

Post by Gunpowder »

You can also use a line fit as an approximate formula, those numbers give you:

y = 0.163x - 0.025

y = 0.163(3) - 0.025 = 0.464
Pack a vest for your james in the city of intercourse
Post Reply