Left Function Variables for multiple cells in same column based on another column

jadess916

New Member
Joined
Jun 25, 2014
Messages
4
:ROFLMAO: Hi all,

So, I'd like to pull the first three digits from a different column and place them in another column while turning any other digits in the original column into zeros in the next column.

This is what I mean:

<colgroup><col><col></colgroup><tbody></tbody>

<tbody></tbody>

<colgroup><col><col><col></colgroup><tbody></tbody>
Column A
Column BColumn CColumn D
$123,456.78
$123,000.00
$89,798.90
$89,700.00
$3,894.03
$3,890.00

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>


I'm not sure this is even possible but I'm sure there's a way to get it to work that is way beyond me.
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Here's one way

=LEFT(A1,3)*10^(LEN(INT(A1))-3)

There's probably a quicker more logical solution
 
Upvote 0
Try this too:

Layout

$123.456,78$123.000,00
$89.798,90$89.700,00
$3.894,03$3.890,00
$123,56$123,00
$12,34$12,30
$1,23$1,23
$0,12$0,12
$0,01$0,01
**************************

<tbody>
</tbody>

Formula

Code:
In B1

=INT(A1/LOOKUP(A1/100,10^(ROW(INDIRECT("1:20"))-5)))*LOOKUP(A1/100,10^(ROW(INDIRECT("1:20"))-5))

And copy down.

Markmzz
 
Upvote 0
Markmzz!!! OMGosh, thanks sooooooooo much! Virtual hugs! Thank you, thank you, thank you!!!! It works like a dream.:biggrin:

Try this too:

Layout

$123.456,78$123.000,00
$89.798,90$89.700,00
$3.894,03$3.890,00
$123,56$123,00
$12,34$12,30
$1,23$1,23
$0,12$0,12
$0,01$0,01
**************************

<tbody>
</tbody>

Formula

Code:
In B1

=INT(A1/LOOKUP(A1/100,10^(ROW(INDIRECT("1:20"))-5)))*LOOKUP(A1/100,10^(ROW(INDIRECT("1:20"))-5))

And copy down.

Markmzz
 
Upvote 0
Just another one you can try:

<html><head><title>Excel Jeanie HTML</title></head><body>
Excel Workbook
AB
112,345,678.0012,300,000.00
21,234,567.80 1,230,000.00
3123,456.78 123,000.00
489,798.90 89,700.00
53,894.03 3,890.00
6123.56 123.00
710.23 10.20
81.22 1.22
90.12 0.12
100.01 0.01
Sheet1


</body></html>
 
Upvote 0
I'm late to this "party", but here is my offering...

=0+REPLACE(TEXT(A1,"0.000000000E+0"),5,7,"")

Format the cell as Currency.
 
Upvote 0
Try this too (a small modification in FormR's formula):

Code:
=FLOOR(A1,10^(LEN(A1*100)-5))

Markmzz
 
Upvote 0

Forum statistics

Threads
1,215,045
Messages
6,122,830
Members
449,096
Latest member
Erald

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