ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Delete Right 5 if (https://www.excelbanter.com/excel-discussion-misc-queries/45713-delete-right-5-if.html)

Esrei

Delete Right 5 if
 
I need a macro to do the following in B3:B500
If(right(......,5)="Total"
Delete Right(........,6)

Hope this is clear

Don Guillett

something like

for each c in selection
if right(c,5)="Total" then c.value=left(c,len(c)-5)
next

--
Don Guillett
SalesAid Software

"Esrei" wrote in message
...
I need a macro to do the following in B3:B500
If(right(......,5)="Total"
Delete Right(........,6)

Hope this is clear





All times are GMT +1. The time now is 02:52 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com