Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default Multiple "IF" statements in a formula

I am trying to develop a formula to look at (example): cell a9 and cell e9 on
the first tab, then find matching data on the 2nd tab (e.g., 1st tab cell a9
looks at 2nd tab 1st column and 1st tab cell e9 looks at 2nd tab 5th column =
if these both find a match, then return the data on 2nd tab 6th column.

Here is my formula:

=IF(VLOOKUP(A9,'Defect Type'!A:H,1,FALSE),IF(VLOOKUP(E9,'Defect
Type'!A:H,5,FALSE),'Defect Type'!F2,"FALSE"))

I know the first row has matching data and should return data, but so far
all I'm getting is an '#N/A'. Any thoughts?

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Multiple "IF" statements in a formula

Try this array formula** :

=INDEX(Sheet2!F1:F20,MATCH(1,(Sheet2!A1:A20=A9)*(S heet2!E1:E20=E9),0))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"lawandgrace" wrote in message
...
I am trying to develop a formula to look at (example): cell a9 and cell e9
on
the first tab, then find matching data on the 2nd tab (e.g., 1st tab cell
a9
looks at 2nd tab 1st column and 1st tab cell e9 looks at 2nd tab 5th
column =
if these both find a match, then return the data on 2nd tab 6th column.

Here is my formula:

=IF(VLOOKUP(A9,'Defect Type'!A:H,1,FALSE),IF(VLOOKUP(E9,'Defect
Type'!A:H,5,FALSE),'Defect Type'!F2,"FALSE"))

I know the first row has matching data and should return data, but so far
all I'm getting is an '#N/A'. Any thoughts?

Thanks!



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
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
Formula for Multiple "IF's" or maybe "COUNTIF's"??? MM Lines Excel Discussion (Misc queries) 7 January 14th 08 08:30 AM
Multiple "source" workbooks linked to single "destination" workboo DAVEJAY Excel Worksheet Functions 1 September 17th 07 05:33 PM
freeze window creates multiple "views" suffixed with ":n" dgaex001 Excel Discussion (Misc queries) 5 March 22nd 06 05:28 PM
How can I have multiple "If" statements in one formula? MikeL Excel Discussion (Misc queries) 5 January 15th 06 03:36 AM


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