Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Formula to use one or the other cell amount

I want a cell to show the amount of one of two other cells. Of the two other
cells, only one will have an amount at any time.

for cell D10, if D5 has an amount, use that amount in D10. If D5 does not
have an amount, use the amount in D7 for D10.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Formula to use one or the other cell amount

One way

In D10:
=IF(COUNT(D5,D7)=0,"",SUM(D5,D7))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Spiritdancer" wrote:
I want a cell to show the amount of one of two other cells. Of the two other
cells, only one will have an amount at any time.

for cell D10, if D5 has an amount, use that amount in D10. If D5 does not
have an amount, use the amount in D7 for D10.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Formula to use one or the other cell amount

Put this formula in D10:

=IF(OR(D5="",D5=0),D10,D5)

Hope this helps.

Pete

On Nov 16, 9:09 pm, Spiritdancer
wrote:
I want a cell to show the amount of one of two other cells. Of the two other
cells, only one will have an amount at any time.

for cell D10, if D5 has an amount, use that amount in D10. If D5 does not
have an amount, use the amount in D7 for D10.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Formula to use one or the other cell amount

=IF(D5,D5,D7)


"Spiritdancer" wrote:

I want a cell to show the amount of one of two other cells. Of the two other
cells, only one will have an amount at any time.

for cell D10, if D5 has an amount, use that amount in D10. If D5 does not
have an amount, use the amount in D7 for D10.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Formula to use one or the other cell amount

Sorry, this should be:

=IF(OR(D5="",D5=0),D7,D5)

Pete

On Nov 16, 9:24 pm, Pete_UK wrote:
Put this formula in D10:

=IF(OR(D5="",D5=0),D10,D5)

Hope this helps.

Pete

On Nov 16, 9:09 pm, Spiritdancer



wrote:
I want a cell to show the amount of one of two other cells. Of the two other
cells, only one will have an amount at any time.


for cell D10, if D5 has an amount, use that amount in D10. If D5 does not
have an amount, use the amount in D7 for D10.- Hide quoted text -


- Show quoted text -


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
I have a delay in formula results when I change one cell amount JStangl Excel Discussion (Misc queries) 10 September 29th 07 04:30 AM
sales tax total amount from one cell amount to another cell ROSIEMSM Excel Discussion (Misc queries) 1 May 19th 07 03:15 PM
Formula for amount owing subtract amount paid Taperchart Excel Worksheet Functions 1 June 4th 06 05:51 PM
Round amount to nearest $10 after other formula calc. in same cell debtors Excel Worksheet Functions 2 March 24th 06 11:45 AM
How do I print formula figures and calculated amount in a cell? SLM Excel Discussion (Misc queries) 6 January 3rd 06 05:48 PM


All times are GMT +1. The time now is 07:43 PM.

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"