Removing 0 from number in specific scenarios

NormChart55

New Member
Joined
Feb 22, 2022
Messages
44
Office Version
  1. 2016
Platform
  1. Windows
Hello,

I am having to add tweak some data for matching purposes elsewhere. I can easily remove the leading 1, but in the case of numbers that then have a 0 after them, I am unsure how to work this equation so that the 0 also gets removed in only those cases. Example below.

Store Number examples
Column D contains the stores in the format below
15563 = should be 5563 (already working)
12173 = should be 2173 (already working)
10449 = should be 449 (currently showing 0449)

Excel Formula:
IF(C8="DIRECT",RIGHT(D8,4)&" "&INDEX(LL!B:B,MATCH(Feed!D8,LL!A:A,0)),0)
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
How about
Excel Formula:
IF(C8="DIRECT",RIGHT(D8,4)+0&" "&INDEX(LL!B:B,MATCH(Feed!D8,LL!A:A,0)),0)
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,195
Members
453,021
Latest member
pingpong7117

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