Bridget365
New Member
- Joined
- Apr 5, 2023
- Messages
- 3
- Office Version
- 365
- Platform
- 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:
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
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!!
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!!