multiple if's regarding LEFT function

avandever

Board Regular
Joined
Dec 7, 2010
Messages
83
i have two columns that i want to concatenate but in the 2nd column, some numbers are 1.9, 2.9, 3.9, etc.. all the way to 24.9. i want to concat the left columns data along with everything left of the "." in the second column. Here is the formula i have and all it does is return blanks. thanks.

<table border="0" cellpadding="0" cellspacing="0" width="148"><col style="width: 61pt;" width="81"> <col style="width: 50pt;" width="67"> <tbody><tr style="height: 15pt;" height="20"> <td style="height: 15pt; width: 61pt; font-size: 11pt; color: black; font-weight: 700; text-decoration: none; font-family: Calibri; border-width: medium medium 0.5pt; border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color rgb(149, 179, 215); background: none repeat scroll 0% 0% rgb(220, 230, 241);" height="20" width="81">sonum</td> <td style="width: 50pt; font-size: 11pt; color: black; font-weight: 700; text-decoration: none; font-family: Calibri; border-width: medium medium 0.5pt; border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color rgb(149, 179, 215); background: none repeat scroll 0% 0% rgb(220, 230, 241);" width="67">lnnum</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt; font-size: 11pt; color: black; font-weight: 700; text-decoration: none; font-family: Calibri; border-width: medium medium 0.5pt; border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color rgb(149, 179, 215);" height="20">A237279</td> <td style="font-size: 11pt; color: black; font-weight: 700; text-decoration: none; font-family: Calibri;" align="right">1.9</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt; font-size: 11pt; color: black; font-weight: 700; text-decoration: none; font-family: Calibri; border-width: medium medium 0.5pt; border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color rgb(149, 179, 215);" height="20">A278143</td> <td style="font-size: 11pt; color: black; font-weight: 700; text-decoration: none; font-family: Calibri;" align="right">3.9</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt; font-size: 11pt; color: black; font-weight: 700; text-decoration: none; font-family: Calibri; border-width: medium medium 0.5pt; border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color rgb(149, 179, 215);" height="20">A910076</td> <td style="font-size: 11pt; color: black; font-weight: 700; text-decoration: none; font-family: Calibri;" align="right">11.9</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt; font-size: 11pt; color: black; font-weight: 700; text-decoration: none; font-family: Calibri; border-width: medium medium 0.5pt; border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color rgb(149, 179, 215);" height="20">A276435</td> <td style="font-size: 11pt; color: black; font-weight: 700; text-decoration: none; font-family: Calibri;" align="right">14.9</td> </tr> </tbody></table>
=IF(LEFT(B3,2)=".",A3&LEFT(B3,1),IF(LEFT(B3,3)=".",A3&LEFT(B3,2),""))
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
I wouldn't say think "simple"
Just avoid over complicating...

There's a fine line between
Simple and just "not complicated"
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,947
Latest member
Gerry_F

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