Removing 0 from number in specific scenarios

NormChart55

New Member
Joined
Feb 22, 2022
Messages
42
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

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
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,215,077
Messages
6,122,991
Members
449,094
Latest member
masterms

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