Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel 2007: Return rownumber when text data on 3 columns match exa

Using: Excel 2007

I want to document Windows Group Policy settings side by side on a single
sheet. To accomplish this task I want to return the row number of the current
sheet where the data of the row that has an exact match. The data I want to
lookup is in three colums.

Example:
Column B | Column C | Column D
-------------------------------------------------------------------------------------------
Policy | Control Panel | Load a specific visual style
Policy | Desktop | Do not add shares
Policy | Desktop | Hide Network Locations icon
Policy | Desktop | Prohibit User from manually redirecting
Policy | Desktop | Remove the Desktop Cleanup Wizard

What I want to query: I want the row number to be returned where I've got an
exact match on a single row within the active worksheet.

Example: Give me the row number where "Column B = Policy" and "Column C =
Desktop" and "Column D = Do not add shares".

I do make a remark that the columns are NOT sorted.

My Question: How can I query this information from a active worksheet and
return the row number where the match is found.

I hope you can help me
Thx in advance. Greetings Fred
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 563
Default Excel 2007: Return rownumber when text data on 3 columns match exa

I put you data on a worksheet beginning in B6
In B1 I entered the text for the B column match - "Policy"
In C2 I entered "Desktop" and in D2, "Prohibit User from manually
redirecting"
In E6 I entered the formula =IF(AND(B6=$B$1,C6=$C$1,D6=$D$1),"X","") and
copied it down the column by double clicking E6's fill handle.
In A1 I enter the formula =MATCH("X",E:E,0)
This returned the value 8 as that is the row where the three items match.
best wishes
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme

"Fonebone" wrote in message
...
Using: Excel 2007

I want to document Windows Group Policy settings side by side on a single
sheet. To accomplish this task I want to return the row number of the
current
sheet where the data of the row that has an exact match. The data I want
to
lookup is in three colums.

Example:
Column B | Column C | Column D
-------------------------------------------------------------------------------------------
Policy | Control Panel | Load a specific visual style
Policy | Desktop | Do not add shares
Policy | Desktop | Hide Network Locations icon
Policy | Desktop | Prohibit User from manually redirecting
Policy | Desktop | Remove the Desktop Cleanup Wizard

What I want to query: I want the row number to be returned where I've got
an
exact match on a single row within the active worksheet.

Example: Give me the row number where "Column B = Policy" and "Column C =
Desktop" and "Column D = Do not add shares".

I do make a remark that the columns are NOT sorted.

My Question: How can I query this information from a active worksheet and
return the row number where the match is found.

I hope you can help me
Thx in advance. Greetings Fred


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
Match 2 Columns, Return 3rd, Differing Match Types Matt.Russett Excel Worksheet Functions 3 May 11th 10 10:45 AM
Match two columns, return a third piece of data uncreative Excel Discussion (Misc queries) 2 April 25th 07 12:40 AM
Match data in 2 columns and return data from 3rd column gwtreece[_2_] Excel Worksheet Functions 1 April 4th 07 03:27 PM
Excel 2007 Beta 2 Error -- Text-to-Columns Wizard Data preview wha Bob from Yorktown Excel Discussion (Misc queries) 0 May 28th 06 03:49 PM
Can I use Excel to match text data from 2 separate columns ? Dan Excel Worksheet Functions 1 September 29th 05 03:51 AM


All times are GMT +1. The time now is 03:40 AM.

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"