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

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
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,223,243
Messages
6,170,964
Members
452,371
Latest member
Frana

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