Subtract hours and minutes from a time entered in Excel 2013 [closed] - excel

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I want to know the time when 12 hrs and 30 mins is subtracted from a time let us say 10:00 AM(it should display 9:30 PM). But since excel by default stores this date as 1st Jan 1990, I am getting a negative timing and excel does not display it. How do I make sure that when a time is entered in a cell,I can subtract certain hours from it and display the time in AM/PM format? PS: I tried changing it to 1904 format,but this did not help.

I think it's enough to put
=MOD(A2-B2,1)
where the first time is in A2 and the second in B2.
That will get the fraction part (the hours) and give it a positive sign which should be what you want.

Related

Selecting a raffle winner with Excel when each player has multiple tickets [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I have to find a way to extract the winner in a raffle, using Excel.
Each player has a number of 'tickets', depending on their work achievements.
For instance: John has 300 tickets, Alice has 360 tickets, Ana has 410 tickets and so on.
I have to use Excel to randomly extract the winner with respect to each player's number of tickets. Any suggestion?
I use the following layout:
Where in E2 I use:
=RANDBETWEEN(1,1070)
This will generate a uniformly distributed random number on the interval [1,1070], where the numbers are discrete.
You then define the intervals, in which the person wins with respect to the number of tickets.
I.e. Ana is represented by the interval [1,410], Alice by [411,770] and John by [771,1070].
You then look in which interval the random number lies, in order to select the winner with this in F2:
=IF(E2<=C$2,"Ana",IF(E2<=C$3,"Alice","John"))

Extracting year value from mm/dd/yyyy [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have a very large dataset (100,000+ records) and one of the fields is a date field that is in this format: mm/dd/yyyy. I have tried using "=YEAR(A1)" to get the year value from the column A which has the original date to column B with only the year date. It just gives me a very weird date like "6/31/1905" but my dates are definitely not in that range. Any other advice?
Format the cell containing the formula:
=YEAR(A1)
as General

What is the maximum number can store in MS excel with 2 decimal places [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I tried to store 999,999,999,999,999.22 in Microsoft Excel. but its automatically rounded to 999,999,999,999,999.00.
What is the maximum number can store in MS excel with 2 decimal places?
How we store large numbers in excel files?
I haven't looked at the documentations, but I did a quick test on my Excel 2007 and those are the results:
It's pretty self-explanatory and to answer your second question, you can store the numbers as text by pre-pending the number with a single quote: ' (e.g. Use '999999999999999.22). It's not ideal, but that works. You'll have to multiply it by 1 or add 0 if you use this value in a formula.

How to take the exact value next to a date cell to another sheet or table in Excel? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I need to take the value corresponding to a certain date, and use it in another table or sheet:
In one sheet, I have two columns, one for the dates (every day of the year) and the other for the fixed values.
In the other sheet, I need to take those fixed values according to the date, which I enter manually.
Tried using the IF function with no success.
Here is an example using =VLOOKUP:

Excel loses decimals on editing [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have something weird happening to my excel data.
I have a list of times formatted like mm:ss,00 so 00:38,25 means 38 seconds and 250 milliseconds.
But when I select one of these cells, the formula bar displays 00:00:38 and if I want to edit to let's say 00:40,25 I can't because the ,25 just dissapears into the nether.
So what can I do so that the formula bar shows what is actually in the cell?
Here are some screens
Thank you
How the time is displayed in the formula bar is controlled by your regional settings [customise > Time]. In my version of Excel, at least, I can change it to show AM or PM but I can't add milliseconds, so it may not be possible to display in the formula bar.
You can edit by just re-keying the new time value

Resources