If conditions

zarir

New Member
Joined
Aug 7, 2003
Messages
25
hi guys,

i guess this is a very basic question for u guys but i just cant seem to get this working.

i have a few values in column A. they are all positive values ranging from anywhere between 0 to 999. all these numbers would have decimal places.

In column B, i need to retrieve just the main integer and not the decimal point.

Eg.

Column A Column B

6.58 6
12.25 12
158.76 158

I know this'll work with the IF and LEFT function and tried using it but i guess i'm doing something wrong as i just cant get the desired output.

Would appreciate any kinda help.

Thanks in advance.
zarir
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
sorry guys but the example has not come out too clearly so redoing that part.

6.58 in column A must show me 6 in column B
12.25 in column A must show me 12 in column B
158.76 in column A must show me 158 in column B

cheers
zarir
 
Upvote 0

Forum statistics

Threads
1,214,389
Messages
6,119,232
Members
448,879
Latest member
VanGirl

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