Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Removing Extra Details From Cells

I am preparing an e-return form in which i exported data from Tally 7.2(An
Accounting Software) to CSV format and Adjusted it in Excel but in One of the
column I have to Mantion "VAT TIN No" So while using tally VAT TIN No is
inserted like this "24xxxxxxxxx dt dd-mm-yyyy" but in IT return Form I only
have to show VAT TIN No not date (ie only 24xxxxxxxxx but not "dt
dd-mm-yyyyy") but while in exporting to CSV Format Tally Exports it in former
form (ie "24xxxxxxxxx dt dd-mm-yyyy") Now my excel sheet looks like following

Date Name VAT TIN No Amt
Tax Total
1-4-06 xyz 2456238942 dt 24-5-05 125634 1253
648666
1-6-06 abc 2456891236 dt 12-6-05 123456 1234
345678

but instead i want to show only tin no like following

Date Name VAT TIN No Amt
Tax Total
1-4-06 xyz 2456238942 125634
1253 648666
1-6-06 abc 2456891236 123456
1234 345678

so as u can see i have to do the same task to do in each cell so i want a
solution in which i can remove part of text after some places automatically i
have to change some 5000 cells like this so if some one can give me a Formula
or a Macro script

Thank You
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Removing Extra Details From Cells

I assume that VAT TIN No is in its own column, column C, starting in C2.

In an in-used column in the second row enter:
=LEFT(C1,FIND(" ",C1,1)-1) and copy down
The formula looks for the first blank in C2 and keeps only the number to the
left of this blank.

Finally, copy the "helper" column and paste/special/value back into column C.


You could also use Text to Columns to accomplish the same thing.


--
Gary''s Student - gsnu200744


"Chintan Shah" wrote:

I am preparing an e-return form in which i exported data from Tally 7.2(An
Accounting Software) to CSV format and Adjusted it in Excel but in One of the
column I have to Mantion "VAT TIN No" So while using tally VAT TIN No is
inserted like this "24xxxxxxxxx dt dd-mm-yyyy" but in IT return Form I only
have to show VAT TIN No not date (ie only 24xxxxxxxxx but not "dt
dd-mm-yyyyy") but while in exporting to CSV Format Tally Exports it in former
form (ie "24xxxxxxxxx dt dd-mm-yyyy") Now my excel sheet looks like following

Date Name VAT TIN No Amt
Tax Total
1-4-06 xyz 2456238942 dt 24-5-05 125634 1253
648666
1-6-06 abc 2456891236 dt 12-6-05 123456 1234
345678

but instead i want to show only tin no like following

Date Name VAT TIN No Amt
Tax Total
1-4-06 xyz 2456238942 125634
1253 648666
1-6-06 abc 2456891236 123456
1234 345678

so as u can see i have to do the same task to do in each cell so i want a
solution in which i can remove part of text after some places automatically i
have to change some 5000 cells like this so if some one can give me a Formula
or a Macro script

Thank You

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Removing Extra Details From Cells

Another option:

Select that range to be fixed
edit|replace
what: _dt* (spacebar, dt, asterisk)
with: (leave blank)
replace all

Your results will be changed to numbers--leading 0's would be lost and strings
of numbers over 15 characters would break.

You could apply a custom numberformat (format|cells|number tab) to get the
leading 0's back.

But if you have strings of numbers greater than 15 characters, don't use this.

Chintan Shah wrote:

I am preparing an e-return form in which i exported data from Tally 7.2(An
Accounting Software) to CSV format and Adjusted it in Excel but in One of the
column I have to Mantion "VAT TIN No" So while using tally VAT TIN No is
inserted like this "24xxxxxxxxx dt dd-mm-yyyy" but in IT return Form I only
have to show VAT TIN No not date (ie only 24xxxxxxxxx but not "dt
dd-mm-yyyyy") but while in exporting to CSV Format Tally Exports it in former
form (ie "24xxxxxxxxx dt dd-mm-yyyy") Now my excel sheet looks like following

Date Name VAT TIN No Amt
Tax Total
1-4-06 xyz 2456238942 dt 24-5-05 125634 1253
648666
1-6-06 abc 2456891236 dt 12-6-05 123456 1234
345678

but instead i want to show only tin no like following

Date Name VAT TIN No Amt
Tax Total
1-4-06 xyz 2456238942 125634
1253 648666
1-6-06 abc 2456891236 123456
1234 345678

so as u can see i have to do the same task to do in each cell so i want a
solution in which i can remove part of text after some places automatically i
have to change some 5000 cells like this so if some one can give me a Formula
or a Macro script

Thank You


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing 2 extra spaces in front of dates in imported excel doc Hannah Excel Discussion (Misc queries) 4 April 12th 06 07:37 PM
Removing random extra spaces jermsalerms Excel Discussion (Misc queries) 3 January 18th 06 04:40 PM
Extra White Space between Cells Leesa Excel Discussion (Misc queries) 1 May 25th 05 06:56 PM
Extra White Space Between Cells Leesa Excel Discussion (Misc queries) 0 May 24th 05 08:46 PM
details about vertical alignment in Excel cells clairdelune Excel Discussion (Misc queries) 1 January 28th 05 11:44 PM


All times are GMT +1. The time now is 01:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"