How can I find cells with **.00 in number?

Bridget365

New Member
Joined
Apr 5, 2023
Messages
3
Office Version
  1. 365
Platform
  1. Windows
I'm going to try not to be too confusing with what I'm needing. I have two sheets.

My first sheet has numbers:
829.75
1563.15
1291.00
306.12

On my second sheet I need the numbers to pull and format as a 8 digit number with no decimal. I used =REPT(0,9-LEN(Sheet1!$K27))&SUBSTITUTE(Sheet1!$K27,".","") which worked beautifully until I got to the numbers that had no cents ".00". I've tried
00082975
00156315
00001291 *Should be 00129100
00030612

I tried using an IF function and IF with RIGHT (which I'm not entirely sure I'm using correctly) but nothing is working. It is not finding the 00 at the end...I'm assuming because it's not really there. I can't change the number to general because I need it to show the .00 on Sheet 1.
=IF(RIGHT(Sheet1!$K8,2)="00",REPT(0,6-LEN(Sheet1!$K8))&SUBSTITUTE(Sheet1!$K8,".",""),"00"),REPT(0,9-LEN(Sheet1!$K8))&SUBSTITUTE(Sheet1!$K8,".",""))

Thanks in advance!!
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
are these numbers, or text numerals?
 
Upvote 0
here are two ways, depending on your original data, and the result is a number. if you need text, then hold on, its coming...
mr excel questions 22.xlsm
ABCDE
13if starting as numberif starting as text
14use nbr format 00000000use nbr format 00000000
15829.7500082975829.7500082975
161563.15001563151563.1500156315
171291.00001291001291.0000129100
18306.1200030612306.1200030612
Bridget365
Cell Formulas
RangeFormula
B15:B18B15=A15*100
E15:E18E15=VALUE(D15)*100
 
Upvote 0
here are 4 scenarios, starting with text or number and ending with text or number:

mr excel questions 22.xlsm
ABCDEF
13if starting as numberif starting as text
14use nbr format 00000000textuse nbr format 00000000text
15829.750008297500082975829.750008297500082975
161563.1500156315001563151563.150015631500156315
171291.0000129100001291001291.000012910000129100
18306.120003061200030612306.120003061200030612
Bridget365
Cell Formulas
RangeFormula
B15:B18B15=A15*100
C15:C18C15=TEXT(A15*100,"00000000")
E15:E18E15=VALUE(D15)*100
F15:F18F15=TEXT(VALUE(D15)*100,"00000000")
 
Upvote 0
Solution
try
VBA Code:
=TEXT(TRIM(CLEAN(A1*100)),"0000000")
and copy down as far as needed.
 
Upvote 0
here are 4 scenarios, starting with text or number and ending with text or number:

mr excel questions 22.xlsm
ABCDEF
13if starting as numberif starting as text
14use nbr format 00000000textuse nbr format 00000000text
15829.750008297500082975829.750008297500082975
161563.1500156315001563151563.150015631500156315
171291.0000129100001291001291.000012910000129100
18306.120003061200030612306.120003061200030612
Bridget365
Cell Formulas
RangeFormula
B15:B18B15=A15*100
C15:C18C15=TEXT(A15*100,"00000000")
E15:E18E15=VALUE(D15)*100
F15:F18F15=TEXT(VALUE(D15)*100,"00000000")
I tried the formula in B15 and it worked beautifully! And it was so simple that I'm mad I didn't see it!

Thank you soo much!!
 
Upvote 0
@Bridget365 , My pleasure. I'm happy you were able to find a solution.
And welcome to the Mr. Excel forum.

I actually quite enjoyed @jolivanes suggestion, as I have never seen the CLEAN function before. So I learned today as well!

Best Wishes!
 
Upvote 0

Forum statistics

Threads
1,223,958
Messages
6,175,636
Members
452,662
Latest member
Aman1997

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