LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default IF and VLOOKUP functions for a matrix overview

I have an Excel sheet with 4 columns and about 1000 rows (A1:D1000 named
Data). The header row contains OrgUnitName, RiskName, ControlName adn
ControlFlag (like High/Med/Low).
A B C D
1 OrgUnitName RiskName ControlName ControlFlag
2 OU1 Risk1 Control1 Med
3 OU1 Risk1 Control1 Low
4 OU2 Risk1 Control1 High
5 OU2 Risk2 Control2 Med
6 OU3 Risk3 Control3 Low

Now, I want to create a separate sheet, where I want to built up a
two-dimensional overview with Org Units on top (e.g. Row 1) and the Risks in
column A. The cells within the matrix should get one of the following values:
0=OU has no risk allocated; 1=OU has risk allocated, but no control with a
"Low" flag; 2=OU has risk allocated and at least one ControlFlag with "Low".
What formula can I use e.g. in B2, to get to the result below.

A B C D
1 OU1 OU2 OU3
2 Risk1 2 1 0
3 Risk2 0 1 0
4 Risk3 0 0 2

I tried the following formula in B2, but it always returns #N/A:
=IF(AND($A$2=VLOOKUP($A$2;Data;1;FALSE);B$1=VLOOKU P(B$1;Data;2;FALSE);"Low"=VLOOKUP("Low";Data;4;FAL SE));2;IF(AND($A$2=VLOOKUP($A$2;Data;1;FALSE);B$1= VLOOKUP(B$1;Data;2;FALSE));1;0))

Many thanks for your help in advance!

 
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
Overview Improvements for Excel Worksheets Feda Excel Discussion (Misc queries) 5 September 18th 07 10:08 PM
Overview usage named ranges Bart Wouters[_2_] Excel Discussion (Misc queries) 1 August 13th 07 01:53 PM
Is there a template for a home improvement project overview? bgkbear Excel Discussion (Misc queries) 1 January 21st 07 06:32 AM
Automation Classes / Methods, overview or list Ole Schjoeth Excel Discussion (Misc queries) 2 November 27th 06 08:14 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright 2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"