is this possible?

new2vba

Board Regular
Joined
Aug 15, 2006
Messages
146
i have two columns:
=F2-B2
=E2-B2

i want another column that shows the values of both columns such as:

=F2-B2 (= "0")
=E2-B2 (= "1")

new column: "0 to 1"
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

onlyadrafter

Well-known Member
Joined
Aug 19, 2003
Messages
5,703
Platform
  1. Windows
Hello,

Do you mean

=H2 &" to " &I2

where H2 = F2-B2 and
where I2 = E2-B2
 

new2vba

Board Regular
Joined
Aug 15, 2006
Messages
146

ADVERTISEMENT

 

new2vba

Board Regular
Joined
Aug 15, 2006
Messages
146
why would excel do this?

why would excel decide to tack on 15 decimal places to some cell contents?
 

Kjuel

New Member
Joined
Sep 4, 2006
Messages
7

ADVERTISEMENT

Try

=TEXT(H2;"0,00") & " to " & TEXT(I2;"0,00")

The formatting works like Custom Number under the menu Format Cell.
 

new2vba

Board Regular
Joined
Aug 15, 2006
Messages
146
Try

=TEXT(H2;"0,00") & " to " & TEXT(I2;"0,00")

The formatting works like Custom Number under the menu Format Cell.
this says formula contains an error and highlights the "h2"
 

new2vba

Board Regular
Joined
Aug 15, 2006
Messages
146
this:
=TEXT(K2,"0,00") & " to " & TEXT(L2,"0,00")

is getting close but turns:

-1.00 0.00

into:

-001 to 000
 

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,304
Office Version
  1. 365
Platform
  1. Windows
Change the semi-colon : to a comma ,.

Kjuel appears to be in Denmark where the ; seperator is used in formulas rather than a comma.

Also change the comma in "0,00" to a . , again an international settings issue.
 

Forum statistics

Threads
1,141,850
Messages
5,708,982
Members
421,602
Latest member
jkpce1880

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
Top