Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default I need an answer display in one cell if (=), but another if (-)

I have an Excel spreadsheet where there is a "Charges" column and a "Credits"
column. I am multiplying the per diem by the days. If it's a positive
number I want the value in the "Charges" column. If it's a negative value I
want it in the "Credits" column. Can anyone suggest a formula to do this?

COUNTY 365 BASE $5,452.78 Per Diem: $14.94
FROM 07/01/08 TO 08/30/07 Days: (306) ($4,571.37)
Thank you!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default I need an answer display in one cell if (=), but another if (-)

A formula cannot "push" values to another cell, so in the Charges
column use this formula:

=MAX(per_diem*days,0)

In the Credits column use this:

=MIN(per_diem*days,0)

Substitute the appropriate cell references and copy down as required.

Hope this helps.

Pete

On Oct 29, 6:43 pm, LeslieD wrote:
I have an Excel spreadsheet where there is a "Charges" column and a "Credits"
column. I am multiplying the per diem by the days. If it's a positive
number I want the value in the "Charges" column. If it's a negative value I
want it in the "Credits" column. Can anyone suggest a formula to do this?

COUNTY 365 BASE $5,452.78 Per Diem: $14.94
FROM 07/01/08 TO 08/30/07 Days: (306) ($4,571.37)
Thank you!



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default I need an answer display in one cell if (=), but another if (-

Thank you very much! That did the trick :o)

"Pete_UK" wrote:

A formula cannot "push" values to another cell, so in the Charges
column use this formula:

=MAX(per_diem*days,0)

In the Credits column use this:

=MIN(per_diem*days,0)

Substitute the appropriate cell references and copy down as required.

Hope this helps.

Pete

On Oct 29, 6:43 pm, LeslieD wrote:
I have an Excel spreadsheet where there is a "Charges" column and a "Credits"
column. I am multiplying the per diem by the days. If it's a positive
number I want the value in the "Charges" column. If it's a negative value I
want it in the "Credits" column. Can anyone suggest a formula to do this?

COUNTY 365 BASE $5,452.78 Per Diem: $14.94
FROM 07/01/08 TO 08/30/07 Days: (306) ($4,571.37)
Thank you!




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default I need an answer display in one cell if (=), but another if (-

Glad to hear it - thanks for feeding back.

Pete

"LeslieD" wrote:

Thank you very much! That did the trick :o)

"Pete_UK" wrote:

A formula cannot "push" values to another cell, so in the Charges
column use this formula:

=MAX(per_diem*days,0)

In the Credits column use this:

=MIN(per_diem*days,0)

Substitute the appropriate cell references and copy down as required.

Hope this helps.

Pete

On Oct 29, 6:43 pm, LeslieD wrote:
I have an Excel spreadsheet where there is a "Charges" column and a "Credits"
column. I am multiplying the per diem by the days. If it's a positive
number I want the value in the "Charges" column. If it's a negative value I
want it in the "Credits" column. Can anyone suggest a formula to do this?

COUNTY 365 BASE $5,452.78 Per Diem: $14.94
FROM 07/01/08 TO 08/30/07 Days: (306) ($4,571.37)
Thank you!




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
Formulas display 0 instead of answer wicked2025 Excel Discussion (Misc queries) 3 November 2nd 06 11:19 PM
how do i use 'if' command to display answer in different cell? Fred Far Excel Discussion (Misc queries) 4 March 10th 06 01:27 PM
the answer dont display just the formula i input help Dimetre New Users to Excel 2 June 25th 05 10:26 AM
Display answer only in another cell of one containing a formula Mally Excel Discussion (Misc queries) 5 January 21st 05 01:07 PM
display the answer for a formula from another page? Lou New Users to Excel 2 November 29th 04 12:17 AM


All times are GMT +1. The time now is 09:19 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"