Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Odd Numbers
I am looking to determine if a dollar amount is odd. I need to split a dollar
amount 50/50 onto two lines. For example, I have a dolar amount of $1.15. My two lines are calculated at $0.58 on each line. I realixe that Excel calculates the value to $0.575 for each line, but my cells are formatted at standard dollars and cents. I would like to do an if statement that would add half a cent to line 1 and subtract half a cent from line 2 if the begiining dollar amount is an odd amount. So far I have been unsuccessful in doing this. Any help would be greatly appreciated. |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Odd Numbers
Hi,
=CEILING(A1/2,0.01) and =FLOOR(A1/2,0.01) Mike "BinaryOrc" wrote: I am looking to determine if a dollar amount is odd. I need to split a dollar amount 50/50 onto two lines. For example, I have a dolar amount of $1.15. My two lines are calculated at $0.58 on each line. I realixe that Excel calculates the value to $0.575 for each line, but my cells are formatted at standard dollars and cents. I would like to do an if statement that would add half a cent to line 1 and subtract half a cent from line 2 if the begiining dollar amount is an odd amount. So far I have been unsuccessful in doing this. Any help would be greatly appreciated. |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Odd Numbers
Thank you very much!
"Mike H" wrote: Hi, =CEILING(A1/2,0.01) and =FLOOR(A1/2,0.01) Mike "BinaryOrc" wrote: I am looking to determine if a dollar amount is odd. I need to split a dollar amount 50/50 onto two lines. For example, I have a dolar amount of $1.15. My two lines are calculated at $0.58 on each line. I realixe that Excel calculates the value to $0.575 for each line, but my cells are formatted at standard dollars and cents. I would like to do an if statement that would add half a cent to line 1 and subtract half a cent from line 2 if the begiining dollar amount is an odd amount. So far I have been unsuccessful in doing this. Any help would be greatly appreciated. |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Odd Numbers
Try this:
A1 = 1.15 A2: =ROUND(A1/2,2) A3: =A1-A2 -- Biff Microsoft Excel MVP "BinaryOrc" wrote in message ... I am looking to determine if a dollar amount is odd. I need to split a dollar amount 50/50 onto two lines. For example, I have a dolar amount of $1.15. My two lines are calculated at $0.58 on each line. I realixe that Excel calculates the value to $0.575 for each line, but my cells are formatted at standard dollars and cents. I would like to do an if statement that would add half a cent to line 1 and subtract half a cent from line 2 if the begiining dollar amount is an odd amount. So far I have been unsuccessful in doing this. Any help would be greatly appreciated. |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Odd Numbers
Give these a try....
=ROUNDUP(A1/2,2) =ROUNDDOWN(A1/2,2) -- Rick (MVP - Excel) "BinaryOrc" wrote in message ... I am looking to determine if a dollar amount is odd. I need to split a dollar amount 50/50 onto two lines. For example, I have a dolar amount of $1.15. My two lines are calculated at $0.58 on each line. I realixe that Excel calculates the value to $0.575 for each line, but my cells are formatted at standard dollars and cents. I would like to do an if statement that would add half a cent to line 1 and subtract half a cent from line 2 if the begiining dollar amount is an odd amount. So far I have been unsuccessful in doing this. Any help would be greatly appreciated. |
#6
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Odd Numbers
your welcome
"BinaryOrc" wrote: Thank you very much! "Mike H" wrote: Hi, =CEILING(A1/2,0.01) and =FLOOR(A1/2,0.01) Mike "BinaryOrc" wrote: I am looking to determine if a dollar amount is odd. I need to split a dollar amount 50/50 onto two lines. For example, I have a dolar amount of $1.15. My two lines are calculated at $0.58 on each line. I realixe that Excel calculates the value to $0.575 for each line, but my cells are formatted at standard dollars and cents. I would like to do an if statement that would add half a cent to line 1 and subtract half a cent from line 2 if the begiining dollar amount is an odd amount. So far I have been unsuccessful in doing this. Any help would be greatly appreciated. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
change 2000 cells (negative numbers) into positive numbers | Excel Worksheet Functions | |||
Convert numbers stored as text to numbers Excel 2000 | Excel Discussion (Misc queries) | |||
Help! How do you get excel to find the x(changes daily, marked in a cell from another formula) highest numbers in a group of numbers and sum them up? | Excel Worksheet Functions | |||
Help! How do you get excel to find the x(changes daily, marked in a cell from another formula) highest numbers in a group of numbers and sum them up? | Excel Worksheet Functions | |||
to find missing serial numbers in randomly generated numbers | Excel Worksheet Functions |