Question

In: Computer Science

Tine is Gabon is 8 hours ahead of Vancouver. Given any local date a user enters...

Tine is Gabon is 8 hours ahead of Vancouver. Given any local date a user enters in one cell, and local time in another cell, have your spreadsheet determine the date/time in Gabon in the format below. For example, if the user enters 11/1/20 in once cell, 6 PM in another cell, the formula result should display November 2, 2020 2:00 AM. The formula should not display data is no date and/or time is entered.

Solutions

Expert Solution

First of All let us assume that the user is entering 11/1/20 in excel cell A1 and 6 PM in Cell B1.

1)Format the cell B1 to display the time 6 PM in this format hh::mm:ss . To do that go to cell B1,Right click >>Format Cell>Custom> in Type select hh:mm:ss.this will display the time as below now:

18:00:00

2) Now we will need to combine both the cells A1 and B1 into a new cell, let suppose A2 . Go to Cell A2 and enter the below formulae :-

=CONCATENATE(TEXT(A1,"mm/dd/yyyy")&" "&TEXT(B1,"hh:mm:ss"))

This will give the result in A2 as :

01/11/2020 18:00:00

You need to add 8 hours to a date/time in Vancouver to get the resultant date/Time in Goban , then apply the below formulae:

3)Select a blank cell in excel say C2, enter the formulae =A2+8/24 into the formulae bar press the Enter Key.This will give you below result in C2:

02 November 2020

Note : In the formulae A2 contains date/Time field in Vancouver , 8 is the hours you need to add to date/time field A2 to get the Date/time in Goban.The above formulae will give you the Date/Time in Goban in C2 where A2 has the date/Time in Vancouver.

4) Now format the cell C2 to give the overall result needed

Right Click C2 >> Format Cell >> Custom >>dd-mm-yyyy hh:mm

The result will look like this :

02-11-2020 02:00

Now to display this as November 2,2020 2:00 AM , go to cell C2

Right Click>>Custom>> Type enter this mmmm dd, yyyy h:mm AM/PM and press ENTER

The result would the below now :

November 02, 2020 2:00 AM

Related Solutions

In matlab.write a program that converts a numerical date given by the user into a month,...
In matlab.write a program that converts a numerical date given by the user into a month, day, and year. Specifically, the user should input a sequence of eight numbers 05141956. the program should print out the same date in complete format. In this example it would print "The date is May 14th, 1956". Notice the "th" addition after the day. This changes depending on the number. Make sure this feature is included. MATLAB has built-in date conversion functions. You cannot...
The user enters some text into a textbox. It can contain any characters (letters, digits, spaces,...
The user enters some text into a textbox. It can contain any characters (letters, digits, spaces, punctuation marks, and there is no length limit). When a button Count is hit , display the number of upper-case letters in the inputted phrase. This must be done in visual studios using C#.
In Dominica, December 25 is Christmas. Given a year that a user enters, have your spreadsheet...
In Dominica, December 25 is Christmas. Given a year that a user enters, have your spreadsheet determine the date of Christmas. For example, if the user enters2030 as the year, your spreadsheet should display the date of Christmas is format 2030: Wd-Dec25. The formula should not display data is entered.
In a local market for unskilled labor, the quantity of labor supplied is 8 million hours...
In a local market for unskilled labor, the quantity of labor supplied is 8 million hours at $8 per hour and 10 million hours at $9 per hour. The employers would hire 8 million hours of labor at $8 per hour and 4 million hours at $9 per hour. The local minimum wage is currently $7.50, but the city council is considering a proposal to raise it to $9 per hour. In this situation, which of the following is true?...
Write application that enables a user to input the grade and number of credit hours for any number of courses.
Write application that enables a user to input the grade and number of credit hours for any number of courses. Calculate the GPA on a 4.0 scale using those values. Grade point average (GPA) is calculated by dividing the total amount of grade points earned, sometimes referred to as quality points, by the total number of credit hours attempted. For each hour, an A receives 4 grade or quality points, a B receives 3 points, a C receives 2 points,...
Create a program that will calculate the factorial of any user entered integer. For any positive integer, the factorial is given as
Create a program that will calculate the factorial of any user entered integer. For any positive integer, the factorial is given as: n! = n·(n-1)·(n-2)·.……·3·2·1. The factorial of 0 is 1. If a number is negative, factorial does not exist and this program should display error message. Sample output dialogues should look like these:  Enter an integer: -5 ERROR!!! Tactorial of a negative number doesn't exist  Enter an integer: 10  Factorial = 3628800
Calculate the takt given the following information: ? Two shifts at 8 hours each shift ?...
Calculate the takt given the following information: ? Two shifts at 8 hours each shift ? Two 10-minute breaks per shift ? 25 minute lunchtime per shift ? There are a total of 8 holidays per year ? Normal work schedule is 5 days per week (Monday-Friday) ? Customer contract calls for 450,000 units/year (contractual agreement) You must show ALL your work/calculations in order to get full credit!
For the past 8 months: Machine-Hours Maintenance Cost This is all the given info!! March 4,440...
For the past 8 months: Machine-Hours Maintenance Cost This is all the given info!! March 4,440 $50,950 April 4,431 $50,877 May 4,412 $50,696 June 4,460 $51,113 July 4,414 $50,711 August 4,433 $50,900 September 4,443 $50,976 October 4,415 $50,730 November 4,391 $50,530 Management believes that maintenance cost is a mixed cost that depends on machine-hours Using the high-low method, calculate (a) Variable cost per machine-hour (b) Fixed cost per month (c) What would total costs be for a month with 4,000...
Given the following bond quote: Maturity Date:8/15/2039 Coupon Rate: 4%, semi-annual payments Bid Price: 158% of...
Given the following bond quote: Maturity Date:8/15/2039 Coupon Rate: 4%, semi-annual payments Bid Price: 158% of par Ask Price: 158.25% of par Change: 0.4688% Part A: Calculate the price an investor would pay to acquire $85,000 of par value in this bond. Part B: Calculate the price an investor would receive for selling $60,000 of par value in this bond
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT