Remove time from date field in Excel formula

0 votes

Following up from my previous question, I need to add on to the formula a way to remove the time from a datetime column.

My current working formula is as follows:

=IF(OR(AD9834="In progress",BB9834=""),ROUND($BW$1-AI9834,0),IF(AD9834="Reopened",ROUND(BW1-AP9834,0),ROUND(BW1-AI9834,0)))

In the AI column, the datetime looks like this:

5/24/2021 1:20:52 PM

I basically need to remove the time from the formula.

I tried to do the following:

=IF(OR(AD9834="In progress",BB9834=""),ROUND($BW$1-AI9834,1),IF(AD9834="Reopened",ROUND(BW1-AP9834,0),ROUND(BW1-AI9834,1)))

But that does not remove the time.

How can I make this work?

Mar 25 in Database by Edureka
• 13,640 points
82 views

1 answer to this question.

0 votes
Use the Find And Replace function to delete the time from a date.

To remove time from a date, first, highlight the cells.

Then, on the Ribbon, go to Home. Select Find & Select from the Editing group.

Select Replace from the pop-up menu.

Finally, in the Find and Replace box, type the space bar and * in the Find what box, and leave the Replace with box blank, then click Replace All.

Following that, the date is omitted.

To Remoce time ,follow these steps

Step 1: Creating a timestamp by formatting data.
Right-click on the cell and select Format Cells...
Step 2: Select Custom in Category and dd-mm-yyyy hh:mm in Type in the Formal Cells box, and then click Ok.
Then, in the cell, we'll enter our date and time.
Format Cells can be used to remove the time from a date.
Step 1: To remove the time from the date, highlight the cells.
Step 2: Next, right-click it and select Format Cells...
Step 3: Select Date in Category and *14-03-2012 in Type in the Format Cells box, then click Ok.

.
answered Mar 30 by gaurav
• 18,960 points

Related Questions In Database

0 votes
1 answer

Excel formula to remove space between words in a cell

There are three fast techniques to get ...READ MORE

answered Mar 30 in Database by gaurav
• 18,960 points
82 views
0 votes
1 answer

how to change format of date from mm/dd/yyyy to dd-mmm-yyyy in MS Excel

First, pick the cells that contain dates, ...READ MORE

answered Apr 11 in Database by gaurav
• 18,960 points
27,654 views
0 votes
1 answer

Split timestamp column into separate date and time columns in excel

Kutools for Excel allows you to split ...READ MORE

answered Apr 11 in Database by gaurav
• 18,960 points
470 views
0 votes
1 answer

Date difference: different results in Excel vs. Python

To calculate the date difference, we can ...READ MORE

answered Feb 23 in Database by gaurav
• 18,960 points
212 views
0 votes
1 answer

How to sort dates from Oldest to Newest in Excel?

Drag down the column to select the ...READ MORE

answered Feb 23 in Database by gaurav
• 18,960 points
126 views
0 votes
1 answer

Excel formula to remove comma, spaces, period and add a text

The steps to accomplish this are as ...READ MORE

answered Mar 15 in Database by gaurav
• 18,960 points
344 views
0 votes
1 answer
0 votes
0 answers

Excel formula for reverse percentage calculation

I have a calculation which I am ...READ MORE

Apr 7 in Database by Edureka
• 13,640 points
56 views
0 votes
1 answer

Remove special characters from the specified string in excel

To erase a specific character from a ...READ MORE

answered Mar 15 in Database by gaurav
• 18,960 points
392 views
0 votes
1 answer

Prevent cell numbers from incrementing in a formula in Excel

In Excel, you can use a feature ...READ MORE

answered Mar 15 in Database by gaurav
• 18,960 points
148 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP