I am looking to remove the ' before the content of a cell in order to do a VLookup, whowever when there are no letters it is turning the value into a number and the vlookup is retrieving inaccurate values. Any idea?
pre - '02364W105
post - 02364W105
pre - '151290889
post - 151290889 (this becomes 1.51E+08)
Change the cell format to Numbers and it does change the style. Normally it should work without it though.
You ha ve to select all these cells and change format to Number.
Probably they will still include the " ' " until you edit each one from the formula bar or pressing F2 and then ENTER.
The best way to avoid editing one by one is to write "1" into an empy cell, then copy it, then select all the cells you want to convert to number, then paste special, select "values" and "multiply".
This will convert all you cells with number formatted as text into numeric cells with numbers inside.
Related
What's the formula for adding a space before a date in a cell?
Eg, [space]25/12/1999
A cell formula will add a space but will change the cell to "Text" instead "Date" for storage which might not be desirable (but may fit your needs just fine). Instead though you can use Cell Formatting.
Right-click the cell and choose "Format"
Go to "Custom" in the list of formatting options and enter " DD/MM/YYYY" in the box (without the double quotes, note the space before the letters.
The nice thing about this option, besides preservation of the date as a "date" format, is that this copies and pastes from the clipboard with the space preserved (if you copy/paste into notepad for instance).
To answer your question as to what you want:
Under presumption your first date is stored in A1, then B1 would be
=" " & Text(A1, "DD/MM/YYYY")
Be careful what you wish for though, this converts the dates to text. What I think what you should want to do instead of artificially adding space before date is to indent the cell instead.
This is done through formatting.
Select cell(s) you want to apply the indent to
Right Click -> Format Cells
Alignment Tab
Indent 1 (or whatever value you desire)
I want to get Rows 2-7 into Row 8 with each value on a separate line so when I copy/paste into PowerPoint it will be formatted already. How do I do this?
Also, I would need the percentages to be Italics. Possible?
Image Attachment
Not sure I fully understand what you are looking for, but in terms of changing vertical data into horizontal/row - you can just copy it and then paste special transpose... (in the right click menu)
Edit: Ok so looking at the image you uploaded, as #Om3r commented you can use the Transpose function. This as far as I know, however, will not put the values into a single cell (though could you not copy across the value from a range of cells to powerpoint instead?).
To put into a single cell with spaces, you could use Transpose and then Concatenate the values CONCATENATE(B8 & " " & C8 & " " ...etc) - this will lose formatting such as italics though. This post might help for more info about setting different formats in a single cell: Use different fonts in same Excel cell?
To use Transpose anyway:
Assuming you don't need the header transposed, put =TRANSPOSE(B2:B7), then in the formula bar press ctrl-shift-enter, drag out to fill the number of cells as values, and use ctrl-shift-enter again (or copy into all the cells first, ignore the value! error which will fix once ctrl-shift-enter)
Copy/paste special method is useful for a one off, transpose if you will be updating the numbers several times. Once you set the percentage cells as italic etc, they should stay that way as you update - so no problems for the second part of your question. (you'll need to set the cells as % format too I think, otherwise will just transpose as a decimal)
I have a single cell with the value:
426,427,433,439,442
This isn't a number, rather a list of numbers. If I try to add another number to the list, for example, 679. Excel changes the cell to read:
679,426,427,433,439,000
If I select the cell and format it as "text", it changes to:
4.26427E+14
I've tried various cell formatting options, but I can't seem to get Excel to treat these numbers like text.
Copy and paste the column into Notepad, format a new column in Excel as text. In Notepad select all, copy it back out from Notepad into the column in Excel that you formatted for text.
First place a single quote (apostrophe) in front of the set of numbers and add the latest value at the end appropriate position.
add (apostrophe) in front of numbers
add (comma's) between
add any number by adding a (comma)
Possibly:
=LEFT(A1,3)&","&MID(A1,4,3)&","&MID(A1,7,3)&","&MID(A1,10,3)&","&MID(A1,13,3)
It seems you have a number 426427433439442 with the commas purely a presentational aspect of the formatting. I take it you want the commas and the only way now may be to insert them.
I am trying to prep some zip codes to go into the WHERE clause of a SQL query:
WHERE [Zip_code] IN ()
To do this I put all the values into Excel and want to concatenate the zip codes with an apostrophe at the beginning and an apostrophe, a comma, and a space at the end so 99508 would become '99508', . So I wrote the equation
=Concatenate("'",D2,"', ") where D2 is the zipcode. It worked for the top row producing '99058', but when I filled down it still showed the value for D2
To make matters more confusing, when I click on the cells and see the formulas, they are tracking the proper cells but still show data for the top row
I have tried everything that I can think of to solve the problem: reformatting everything as text, formatting the zipcodes as Numbers rather than text, putting the text in the adjoining columns (C2 has an apostrophe, D2 has the Zip code, E2 has apostrophe, comma, and space) and concatenating, using & instead of concatenate ("'"&D2&"', " ), concatenating A on the front and B on the end to do a find and replace, but I still get the same result. If I select a concatenated cell, click on the formula bar, and press enter the cell shows the proper concatenation, but I would rather not do that for every single cell.
My co-worker suggests including that the zip codes were taken from pivot table outputs.
Any suggestions?
Turns out that calculations had somehow been set to manual instead of automatic.
Switching back to automatic solved the problem.
use this instead
=concatenate("'";D2;"',")
idk if gonna work on you sheet, bc i have in spanish my MS-office suite
but if doesn't work, replace the ; for ,
if you copy the formula to the other cells, this must change to the next row
First is clear the worksheet format
secondly, click on file on the excel, then to option, to formula after formula, check the position of the calculation. if its in automatic change it back to Manual and then change it back to automatic. That will solve it.
I have formatted the columns as follows:
_($* #,##0.00_);_($* (#,##0.00);_($* "-"??);(#_).
If I copy paste the value then it doesn't work.
But if I type 1234, then it automatically converts to $ 1,234.
But how can I make it work even I do pasting.
I googled it and found that conditional formatting is used in these scenario.(Am I right?)
I tried doing conditional formatting also but could not secceed.
Can somebody tell me how to achieve this in conditional formatting:
How to convert text so that final value will be like $ 1,234 ?
If the column is empty or white space , replace it with - in the center.
Any type of help is appreciated.
Thanks.
When you paste something into a cell in Excel, by default, the format is also pasted. To prevent this, you must do a Paste Special, then choose to only paste the Value.
For the conditional formatting of the currency, you can set up a rule that looks like this:
Getting a '-' to appear in a blank cell is not possible in Excel formatting rules. A dash can be inserted as formatting, but only as long as there is actual data in the cell. If the cell is blank, Excel will not display any characters.
If what appear to be numbers are imported as text there is likely to be a warning of this in Excel (a small green triangle in the top left of the cells - for all recent Excel versions can be turn on/off in Options, Formulas, Error Checking). By selecting a range that includes the first instance, these strings can be converted to General format (so that values are recognised as numbers) by clicking the warning icon and Convert to Number.
Then 'standard formatting' can be applied, perhaps:
` $* #,##0 ;($* #,##0)`
and empty cells selected with HOME > Editing - Find & Select, Go To Special..., Blanks then formatted Alignment Center and contents entered with Find (nothing) and filled with hyphens with Replace with -.