View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
OssieMac OssieMac is offline
external usenet poster
 
Posts: 2,510
Default Reference cell in one TAB from another using two criteria

Example of nested And function with If function to make 2 comparisons.

=IF(AND(Name_Range_Date=A1,Named_Range_Hour=B3),Sh eet2!A3,"No Match")

If the match is true then the reference in another tab is inserted. If not
true then it inserts 'No Match'. this can be replaced with double quotes
without a space between them ("""") if you do not want to see anything if
there is no match. However, by initially using 'No Match', it helps in
testing if the formula is doing what you want.

Any named range is always absolute. In the above formula, A1, B3 and
Sheet2!A3 are relative.

The following makes all cell references absolute:-

=IF(AND(Name_Range_Date=$A$1,Named_Range_Hour=$B$3 ),Sheet2!$A$3,"No Match")

I included the second one because I do not know just what you need when you
say you want to copy the formula.


Hope it helps.

Regards,

OssieMac






"Jeff" wrote:

I would like to reference a cell in TAB A based on two criteria,

Where
Named_Range_Date = A1

and

Named_Range_Hour = B3

I need to be able to copy this formula so that I can populate a new table,
any ideas?
--
Jeff