Multiplying different number formats in Excel - excel-formula

I'm using an excel document to track my hours at work (this is my 3rd question about it)
I'm trying to figure out how to multiply a time (i.e. 62:05, which is how long I have worked for over 2 weeks), by my hourly rate (11$/hr) and get approximate gross earnings in this format: $667.43
my time format is [hh]:mm and the 11/hr format doesn't do anything other than the total being 29.0000382 something.

Consider this formula:
=A1*24*B1

Related

Is there a way to calculate the average of all these times (Excel 2019)?

I'm trying to find the average time of all these times (see link), but there doesn't seem to be a format that won't convert these into 12 hour time. I currently have them stored as text, so the average currently cannot be calculated. I've tried multiple h:mm:ss formats and related formats, but they all don't give an average after =AVERAGE (C2:C20). Is there a way to do this? Thanks
With the values stored as text, you can get the average with
=AVERAGE(VALUE(C2:C21))
(this will have to be entered as an array formula if you're using Excel 2019 or earlier)
(the entries in column D are all numbers, with the custom-number format h:mm:ss.0 applied to them)

Excel - Photovoltaic - converting hours

I have a problem that I would like to solve. I got data in excel, which are
in this form, basically I have number of hours from 0 to 8760 in a column in excel, which represent the whole year. And in another column I have "Power from PV" which corresponds to how much power does photovoltaic system produce in that specific hour. I would like to convert these hours to months, so I could make a graph of monthly production of power in a whole year. Is there some sensible way to do this in excel?
Thank you for any suggestions.
You need three things:
You need to know that 1 equals 1 day, so if you want to convert hours into date related information, you need to divide it by 24.
There is a function, called Date(), which gives the date, based on year, month and day, like =DATE(2022,1,1).
There is a function, called Month(), which gives the month number of a date.
So, in summary, you need something like:
=MONTH(DATE(2022,1,1) + A3 / 24)
Once you have this in a new helper column, you can start using the Subtotals basic Excel feature.

Reducing duration by a percentage in excel

I have been racking my brain for hours on how to do this, so I am reaching out to some of you excel experts.
Say you have a duration represented as 1d 14:25:00 and you want to reduce that by a given percent, such as 149.5%, how can this be done?
At first I thought about going down the route of having a cell formatted in time, but when you try and do math against it, it fails.
Then I thought about maybe converting the time down to seconds and working with that, but that seems like it is total pain in the rear. It involves a lot of converting from time to number then back to time to display it. There has to be an easier way.
It depends on how you format the cell to read the Date/Time. If it's represented as a Time, then I believe the best approach is to convert the percentage into a decimal number (i.e 150% = 1.5), then use that in your formula.
However, it also requires applying the cell format to the custom format of [h]:mm:ss to include any times above 24 hours. See the image below for an example.
Time Conversion Example:
The only alternative is a "pain in the rear" - breaking the time down into seconds.
Excel includes built-in functions to convert a Date/Time into HOUR(date), MINUTE(date), and SECOND(date). Unfortunately, getting the number of days requires calculating the difference between two times: DAYS(end_date, start_date). I used this in the example above for the rows titled Conversion.

Microsoft Excel: Calculate hourly rate based on session rate and length

I am using Microsoft Excel 2013 to do some calculations related to personal training and am a little stuck.
I would like to calculate the hourly rate based on a particular session rate and session length?
The variables are basically:
session rate (eg say $40 in cell B6) - this is currently formatted
via Format Cells > Category > Currency with 2 decimal figures
session length (eg say 30 minutes in cell B9) - this is currently formatted via Format Cells > Category > Custom as h:mm
Manually I know how to work out the hourly rate above based on 30 minute sessions - I just times the session rate by 2. But it gets quite hard to do it manually for say a 40 or 50 minute session.
What formula could I use in Excel to work out the hourly rate?
Thanks in advance for any help.
Times are stored as fractions of a day so you have to multiply by 24 to get them into hours. So the answer should be
=B6/(B9*24)
but it will probably try to format this as a time and you will need to change the formatting of the result to either general or currency to make it display the right answer.

What is wrong with this calculated field for total hours between two times in SharePoint 2007?

I am attempting to get the total hours between two times in a SharePoint 2007 list. Right now I have the formula as...
=INT(([Column2]-[Column1])*24)
...which I have looked up and says that it is the correct formula to do this. But, what I get is a weird date like "2/18/1900 12:00 AM" instead of what it should be: 26.
Another formula I tried was...
=TEXT([Column2]-[Column1],"h")
...but, this will only get the difference in hours and not count the days (if they are more than one apart).
Both of the columns are Date & Time columns. So, what am I doing wrong?
My take is that you set the output format of the calculated column to be Date and Time, while it should be of type number.
In a calculated column, the number of hours between two times is:
=TEXT([Column2]-[Column1],"h")
Providing that the difference is less than 24 hours. Otherwise, you'll need to look at getting the days difference and doing a multi-step calculation involving the number of days between the dates * 24 + the calc above.

Resources