I have to do it like 65 times though. Wanted to see if there was a less manual shortcut.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.
Excel
Moderators: Shirley, Sabo, brian, rass, DaveInSeattle
- Johnny Carwash
- The Dude
- Posts: 6003
- Joined: Mon Mar 11, 2013 8:57 am
- Location: Land of 10,000 Sununus
Re: Excel
Fanniebug wrote: P.S. rass! Dont write me again, dude! You're in ignore list!
- A_B
- The Dude
- Posts: 24975
- Joined: Mon Mar 11, 2013 7:36 am
- Location: Made with bits of real panther.
Re: Excel
Got you, I figured that so I gave with the "easiest" way but not the least work-intensive while I was noodling.Johnny Carwash wrote: Tue Oct 29, 2024 3:48 pmI have to do it like 65 times though. Wanted to see if there was a less manual shortcut.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.
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 update 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.
- A_B
- The Dude
- Posts: 24975
- Joined: Mon Mar 11, 2013 7:36 am
- Location: Made with bits of real panther.
Re: Excel
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
https://answers.microsoft.com/en-us/mso ... bc33c5f711
One milkshake to bring all the boys to the yard and in the darkness bind them.
- Johnny Carwash
- The Dude
- Posts: 6003
- Joined: Mon Mar 11, 2013 8:57 am
- Location: Land of 10,000 Sununus
Re: Excel
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!
Re: Excel
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'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.
Pack a vest for your james in the city of intercourse
- Steve of phpBB
- The Dude
- Posts: 9545
- Joined: Mon Mar 11, 2013 10:44 am
- Location: Feeling gravity's pull
Re: Excel
Was 1900 a leap year?
"He swore fluently, obscenely, and without repeating himself for just over a minute."
Mick Herron, "Down Cemetery Road"
Mick Herron, "Down Cemetery Road"
Re: Excel
It wasn’t!
Re: Excel
Then not sure why it stores that as 366 and not 365.
Pack a vest for your james in the city of intercourse
Re: Excel
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
Re: Excel
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.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.
Totally Kafkaesque
- Steve of phpBB
- The Dude
- Posts: 9545
- Joined: Mon Mar 11, 2013 10:44 am
- Location: Feeling gravity's pull
Re: Excel
As a kid I read books full of that kind of nerdy trivia.Shirley wrote: Wed Oct 30, 2024 9:09 amI 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.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.
"He swore fluently, obscenely, and without repeating himself for just over a minute."
Mick Herron, "Down Cemetery Road"
Mick Herron, "Down Cemetery Road"
- A_B
- The Dude
- Posts: 24975
- Joined: Mon Mar 11, 2013 7:36 am
- Location: Made with bits of real panther.
Re: Excel
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.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?
One milkshake to bring all the boys to the yard and in the darkness bind them.
Re: Excel
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
holy fuckbAllZ, what a ducking nightmare. Holy shot. Just, fuck. The
Re: Excel
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.
Re: Excel
instead of a copy can you do a formulaRyan 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.
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
Re: Excel
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?


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
Re: Excel
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).
Re: Excel
Thanks. I concatted them into the same cell and got it to work.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.
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
Re: Excel
Why can't I get this bottom row of data to update on my chart you guys?
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
- Steve of phpBB
- The Dude
- Posts: 9545
- Joined: Mon Mar 11, 2013 10:44 am
- Location: Feeling gravity's pull
Re: Excel
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?
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!
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
Re: Excel
Oh yeah, they both had 91 actually but you're right...that has to be an error.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.
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
Re: Excel
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?
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
Re: Excel
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.
Re: Excel
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.
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
Re: Excel
I'm saying I can't back into the formula. There has to be one or more missing components.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.
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.
Re: Excel
Wouldn't the number of "bed days" change relatively randomly?
Pack a vest for your james in the city of intercourse
Re: Excel
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.
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
Re: Excel
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
y = 0.163x - 0.025
y = 0.163(3) - 0.025 = 0.464
Pack a vest for your james in the city of intercourse