How to get what excel cell is showing? - excel

I have a strange question.
Screenshot:
From the screenshot you can see that the formula bar is showing just a single apostrophe. This is on all of the blue cells. These should be dates but all this data is coming from a excel plugin (Board)
From what I know Excel treats this cells differently i.e. everything after the apostrophe should be shown as text but here there is nothing after the apostrophe and the cells are still showing a values.
Is there a way with formula that I can get and compare this value with another cell in different worksheet?
EDIT:
If there is a way to get it as a text, could it be than converted into date format number?
EDIT 2 - SOLUTION
As per Mahesh and Jeeped comments - there was a newline character in the formula bar

If the date is preceded only by a new line and there are no other characters after the date, this will be much simpler:
=VALUE(REPLACE(A1,1,1,""))
This will give you the date value in general format (i.e., 43033), so you'll have to format it as a date.
Note: Using DATEVALUE instead of VALUE will give you the same result.

You have not confirmed the vbLF characters in the cells but try this in an unused cell to retrieve a true date.
=datevalue(trim(mid(substitute(kn1, char(10), rept(char(32), len(kn1))), len(kn1), len(kn1))))
Assuming that you are on a DMY regional format that should get you a number like 43028. Format it as a date.

Related

Change dot formatted date to Slash format

Hi all I want to change the date format from dot to slash and I have tried all ways of changing the date from control panel and also from the "Format option" in excel but nothing works.
Please would anyone can recommend how can I do this bulk change of format of date except doing it manually.
Any advices would be much appreciated.
First of all, make sure the value you have in the spreadsheet is a valid date.
Excel might interpret the value as plain text.
After you make sure it is a date, then you can change the date format using the cell attribute editor
You can use formatting like dd/mm/yyyy or mm/dd/yyyy
You can use substitute to replace the dot with a slash, then wrap that with datevalue to convert to a date. Lastly, format the cell as your desired Date format (such as Short Date or Custom).
Below, column A is your original data.
Column B contains the following formula:
=DATEVALUE(SUBSTITUTE(A2,".","/"))
Output:

I'm trying to restrict a cell to specific characters using excel

i'm trying to force the date format of mm/dd/yyyy in a cell in excel using excel for mac v 16.60. the column format must be text.
i'm not great with visual basic, so i'm hoping this is accomplishable via formula or data validation.
i've tried the following:
https://answers.microsoft.com/en-us/msoffice/forum/all/forcing-a-particular-format-for-date-data-entry-in/fe2d68c5-12e2-45c5-afb7-a5d1be732bfe
https://www.extendoffice.com/documents/excel/3653-excel-only-allow-date-in-cell.html
(#2 under allow only date format in specific cells with data validation function)
is there a way to require 2 digits, a slash, 2 more digits, a slash, then 4 digits in a text-formatted cell?
There is a Excel formula for text. Place a regular date in cell A2 then in another cell type =TEXT(A2,"mm/dd/yyyy").
If the answer works for you, the expectation is that you checkmark it and upvote it. If the answer does not work for you you add a comment at the bottom and the problem you experience.

How to insert a date into a google spreadsheet?

In a google spreadsheet I define some vertical cells with Format 'Date' as '29.5.2019' (i.e. day.month.year). In the cell below I define a formula
=A3+7
to get the date one week later. But no matter what I enter in "A2", I get an error like:
Function ADD parameter 1 expects number values. But '29.5.2019' is a text and cannot be coerced to a number.
So although I think that the format in A2 is a date, the spreadsheet thinks its a text. So how to fix that?
Date should be in the format dd/mm/yyyy.

Convert date format in excel from dd.mmm to dd.mm

I need to convert this data dd/mmm - 31.mar (March) to this format 31/03 - dd/mm using excel formula
A bit of googling would have solved your issue here.
Select cell (or range of cells).
Right click with mouse
Format Cells
Custom
Change Type: dd/mmm to dd/mm
=text([CellWithDate],"dd/mm")
is the formula you want, I think.
#Valeria:
Can't be sure I understood your problem and/or the type of solution you're looking for.
I assume you have a date in , say, cell A1 and that cell is showing the date in "dd-mmm" format.
I also assume you want that date to be shown in another cell (different from A1) in "dd/mm" format BUT without previously setting that target cell format to "dd/mm".
In case I'm right, the formula you should put in the target cell shouldo look like:
=DAY(A1) & IF(MONTH(A1)<10;"/0";"/") & MONTH((A1))
This way, if cell A1 holds "31-aug", you're getting "31/08" wherever you put that formula.
The value Excel actually stores in the cell is just its date+time serial number (whatever you're seeing is a very different question). DAY() and MONTH() do work on that value to generate day of the month and month of the year after that serial number.
Hope this helps.

How to remove the first letter in each cell in a column in excel?

I have column in excel like below,
'04-Feb-01
'04-Mar-01
'08-Apr-01
'06-May-01
'03-Jun-01
'08-Jul-01
'05-Aug-01
I want to remove the character ' in all cells how can i do that?
I already tried with =RIGHT(A1,LEN(A1)-1) this one.. not working
Convert the text to a date using DATEVALUE. Then apply a date format to your liking.
When you enter data into a cell, Excel will try and convert it to the correct type (is it text, a number or a date) The single quote is Excel's way of saying treat what follows as text. It comes in handy when entering things like telephone numbers which Excel might think is a number and would not display leading zeros. In your the example the actual value in the cell is the text without the single quote, you can check this by copying a cell and then pasting into notepad and there would be no quote in the result.
Why do you want to remove the quote? If it is because you want the cells to contain a date rather than text you can convert it using the DATEVALUE function or by using copy and paste special values only .

Resources