#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
change 2000 cells (negative numbers) into positive numbers lisbern Excel Worksheet Functions 2 August 16th 06 05:54 PM
Convert numbers stored as text to numbers Excel 2000 Darlene Excel Discussion (Misc queries) 6 January 31st 06 08:04 PM
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? C-Man23 Excel Worksheet Functions 3 January 19th 06 09:52 AM
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? C-Man23 Excel Worksheet Functions 1 January 9th 06 01:23 PM
to find missing serial numbers in randomly generated numbers B.H. Hadi Excel Worksheet Functions 2 December 1st 05 10:56 PM


All times are GMT +1. The time now is 06:01 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"