Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Tim Tim is offline
external usenet poster
 
Posts: 408
Default how do i use IF to substitute for another cell?

Hi,

i have a stock sheet, and the cost price comes from a cell which is a
average. in some months though we do not have all the products delivered, so
the average is either #value or #ref. In another cell though I always have
what we last paid for the product, what would be the formula so that if one
cell does bring up either #VALUE or #REF then i could put in the start cell?

Much thanks if you can help, I am sure it is very simple.
--
Tim
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default how do i use IF to substitute for another cell?

Without seeing the formula all I can do is show an example of trapping for
errors.

=IF(ISERROR(A1+B1),C3,A1+B1)

In 2007 version use =IFERROR(A1+B1,C3)

ISERROR wil trap all errors so may not be desirable.

Maybe trap for a cell or cells being blank.

I don't know why you would get a #REF! just from missing data but again, I
can't see your formula.


Gord Dibben MS Excel MVP


On Sat, 24 Oct 2009 06:48:01 -0700, Tim
wrote:

Hi,

i have a stock sheet, and the cost price comes from a cell which is a
average. in some months though we do not have all the products delivered, so
the average is either #value or #ref. In another cell though I always have
what we last paid for the product, what would be the formula so that if one
cell does bring up either #VALUE or #REF then i could put in the start cell?

Much thanks if you can help, I am sure it is very simple.


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
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE.... max. limit 8 :( [email protected] Excel Discussion (Misc queries) 6 May 22nd 08 05:33 PM
Using SUBSTITUTE multiple times on single cell of data Cameron Excel Discussion (Misc queries) 1 December 6th 06 11:58 PM
substitute the filename in a cell reference with a string in another cell. flummi Excel Discussion (Misc queries) 11 February 22nd 06 01:14 PM
=countif (h3:h16"=01 01 2006") how to substitute cell for date Barry Excel Worksheet Functions 4 January 14th 06 12:35 AM
Substitute ,replace and delete in a cell. Doug Excel Worksheet Functions 2 November 9th 05 03:50 PM


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