Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-02-2013, 12:11 AM
jolinchew jolinchew is offline display error Windows 7 32bit display error Office 2010 32bit
Novice
display error
 
Join Date: Jul 2013
Posts: 11
jolinchew is on a distinguished road
Default display error

display error, I want to change column U, for example from 4.000002E13 to 40000165342013, pls see attached. how to do? why it display like ***2E13, how to prevent this.

also if I have cell "12345672013", how to make it by trail 2013 in the cell, I want it to be "1234567"
Attached Images
File Type: png 2013.PNG (7.6 KB, 10 views)
Reply With Quote
  #2  
Old 08-03-2013, 12:23 PM
excelledsoftware excelledsoftware is offline display error Windows 7 64bit display error Office 2003
IT Specialist
 
Join Date: Jan 2012
Location: Utah
Posts: 455
excelledsoftware will become famous soon enough
Default

Quote:
Originally Posted by jolinchew View Post
display error, I want to change column U, for example from 4.000002E13 to 40000165342013, pls see attached. how to do? why it display like ***2E13, how to prevent this.

also if I have cell "12345672013", how to make it by trail 2013 in the cell, I want it to be "1234567"
This appears to be 2 issues so here are 2 solutions.

It appears that the first issue is dealing with what is called scientific notation. Besides converting the cell to text you could add a ' into the result cell. an example would be to place this formula in cell u1 ="'"&a1
the quotes are around the ' so it is " ' " without the spaces. This will show the whole number. If you need to do calculations with it calculate the value in A1 not U1. U1 is just so you can see the number.

Now the 2nd issue could be accomplished by the formula =right(a1,4)
This will take the last 4 characters of a string and display them. so 01234567892013 will show 2013. Again if you need to do calculation on this change the formula to =right(a1,4)+0

Let me know if this makes sense.

Thanks
Reply With Quote
  #3  
Old 08-04-2013, 02:49 AM
jolinchew jolinchew is offline display error Windows 7 32bit display error Office 2010 32bit
Novice
display error
 
Join Date: Jul 2013
Posts: 11
jolinchew is on a distinguished road
Default No

No, I want to remove 2013, not to get 2013, eg. 345672013, I want 34567, not 2013.

if it is ABC2013, I want ABC, if it is ABCTW2013, I want ABCTW. it can have different length

The problem not resolved
Reply With Quote
  #4  
Old 08-04-2013, 06:28 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline display error Windows 7 64bit display error Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,920
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Ctrl+H
replace what :2013
with: (leave blank)

Replace all
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #5  
Old 08-04-2013, 06:26 PM
jolinchew jolinchew is offline display error Windows 7 32bit display error Office 2010 32bit
Novice
display error
 
Join Date: Jul 2013
Posts: 11
jolinchew is on a distinguished road
Default problem not resolved

problem still not resolved, I have below cases:

2sw2013cf2013, I want it to be 2sw2013cf, not 2swcf.

I just want to trim '2013' at the end of phase, any idea?
Reply With Quote
  #6  
Old 08-04-2013, 08:40 PM
BobBridges's Avatar
BobBridges BobBridges is offline display error Windows 7 64bit display error Office 2010 32bit
Expert
 
Join Date: May 2013
Location: USA
Posts: 700
BobBridges has a spectacular aura aboutBobBridges has a spectacular aura about
Default

Jolinchew, are you saying you want—well, let me rephrase it and you tell me whether it's right:

Quote:
I have a string that is at least four characters long. Somewhere in that string is the substring "2013". Wherever that exists, I want the string to be truncated just before that. For instance:

"1234567892103": Display "123456789"
"abc7892013zyx321": Display "abc789" (dropping "2013" and everything that comes after it)
"Happy New Year!": Display "Happy New Year!" (no change)
"20136458cabd": Display "" (no string)
"4.52013672013892013": Display "4.5" (it's the first "2013" that matters)
"(212) 456-2013": Display "(212) 456-"
"2014 - 2013 = 1": Display "2014 - " (with trailing space)
If all that's right, it seems to me you need to use the FIND function to find "2013". Once you know what position it's in, you can use the LEFT function to keep just the parts of the character string that come before that position. Does that tell you what you need to know, or do you need a little coaching to use those two functions?

Last edited by BobBridges; 08-04-2013 at 08:41 PM. Reason: Fix a typo
Reply With Quote
  #7  
Old 08-04-2013, 11:38 PM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline display error Windows 7 64bit display error Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,920
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Perhaps =left(A1,len(A1)-4)
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #8  
Old 08-05-2013, 05:26 AM
BobBridges's Avatar
BobBridges BobBridges is offline display error Windows 7 64bit display error Office 2010 32bit
Expert
 
Join Date: May 2013
Location: USA
Posts: 700
BobBridges has a spectacular aura aboutBobBridges has a spectacular aura about
Default

I was going to correct Pecoflyer's solution ("no, that just removes the last four bytes of string whether or not they're '2013' "), and checked your samples again. I see I got it wrong; it's not the first "2013" that matters, it's the last. And I thought you had at least one where more text appeared after "2013", but in all your examples every string ends that way.

So go over those sample strings again and tell me how you want them treated. That'll tell you whether Pecoflyer's solution will work for you. If it won't, your answers to the samples should enable either of us to define one that will.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Milestones: Display of - turning off the display of the date Pmacdaddy Project 3 01-18-2013 05:42 PM
WORD 2010 Print Layout View display error cwk Word 1 06-20-2012 04:38 PM
display error Microsoft office 2010 error 2908 and error 1935 !!!!!!heeeeellpppp!!!!!!!!! bennypryde Office 1 01-05-2012 03:33 PM
Microsoft Office 2010 programs display error message "Application has failed to start SamSR Office 1 02-15-2011 07:15 AM
Runtime error 5487 - Word cannot complete the save to to file permission error franferns Word 0 11-25-2009 05:35 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:56 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft