Subtotal comes with TOTAL at end. To get rid of that

swati vyas

New Member
Joined
Dec 27, 2007
Messages
18
Hi
Mississauga, ON Total
Montreal Total
Naresh Group- Vaughan Total
Ottawa Total
Parry Sound, ON Total
Quebec Total
Sarnia Total
Toronto, ON Total
USA Total


I need to have a formula which will give me in excel in next column only names of cities without the TOTAL at end. How do i do that? I tried left but since not all names of same number of alphabets cant use successfully.

the only way i could do it was manually deleting TOTAL in each line. Please help. thanks
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Just copy the column to the next column, select the column and then use find and replace. Put "Total" in the find box, leave the replace box blank and click replace all
 
Upvote 0
Hi
Mississauga, ON Total
Montreal Total
Naresh Group- Vaughan Total
Ottawa Total
Parry Sound, ON Total
Quebec Total
Sarnia Total
Toronto, ON Total
USA Total


I need to have a formula which will give me in excel in next column only names of cities without the TOTAL at end. How do i do that? I tried left but since not all names of same number of alphabets cant use successfully.

the only way i could do it was manually deleting TOTAL in each line. Please help. thanks
Try this...

Book1
AB
2Mississauga, ON TotalMississauga, ON
3Montreal TotalMontreal
4Naresh Group- Vaughan TotalNaresh Group- Vaughan
5Ottawa TotalOttawa
6Parry Sound, ON TotalParry Sound, ON
7Quebec TotalQuebec
8Sarnia TotalSarnia
9Toronto, ON TotalToronto, ON
10USA TotalUSA
Activity

This formula entered in B2 and copied down:

=LEFT(A2,LEN(A2)-6)
 
Upvote 0
Welcome to the board citizen :)

Here are few alternatives:

Excel Workbook
ABCD
1OriginalOption 1Option 2Option 3
2Mississauga, ON TotalMississauga, ONMississauga, ONMississauga, ON
3Montreal TotalMontrealMontrealMontreal
4Naresh Group- Vaughan TotalNaresh Group- VaughanNaresh Group- VaughanNaresh Group- Vaughan
5Ottawa TotalOttawaOttawaOttawa
6Parry Sound, ON TotalParry Sound, ONParry Sound, ONParry Sound, ON
7Quebec TotalQuebecQuebecQuebec
8Sarnia TotalSarniaSarniaSarnia
9Toronto, ON TotalToronto, ONToronto, ONToronto, ON
10USA TotalUSAUSAUSA
Sheet1
 
Upvote 0
Welcome to the board citizen :)

Here are few alternatives:

Excel Workbook
ABCD
1OriginalOption 1Option 2Option 3
2Mississauga, ON TotalMississauga, ONMississauga, ONMississauga, ON
3Montreal TotalMontrealMontrealMontreal
4Naresh Group- Vaughan TotalNaresh Group- VaughanNaresh Group- VaughanNaresh Group- Vaughan
5Ottawa TotalOttawaOttawaOttawa
6Parry Sound, ON TotalParry Sound, ONParry Sound, ONParry Sound, ON
7Quebec TotalQuebecQuebecQuebec
8Sarnia TotalSarniaSarniaSarnia
9Toronto, ON TotalToronto, ONToronto, ONToronto, ON
10USA TotalUSAUSAUSA
Sheet1
Each of those formulas returns the space character before the word total.

=CODE(RIGHT(B2)) = 32
=CODE(RIGHT(C2)) = 32
=CODE(RIGHT(D2)) = 32
 
Upvote 0
Hi friend:)

However this just edit the original. Hope to add some help.:)

You can press F5---->>special--->>visible cells only
Then, = --->>arrow up---->>control enter

Hope for your feedback:)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,749
Members
452,940
Latest member
rootytrip

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top