#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 104
Default MATCH

Hello,

I am looking for a formula which looks for 2 specific text values which are
there in sheet1, matches with the same text in sheet2 and displays the
corresponding value which is there in sheet2 on a cell in sheet1.

Let me explain with an example.

Sheet1 has data similar to this

Date Time Emp Number Name Designation
= = 23 Bob Manager


The cell which displays Time should match the Name and Designation in sheet1
with the same Name and Designation in sheet2 and display the corresponding
Date and Time value present in sheet2 on to sheet1

Sheet2 has raw data in these headers

Date Time Emp Number Name
27-Apr 18:00 23 Bob
27-Apr 18:22 26 Kate


Please help

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default MATCH

Hi,
your information is in column A to E in both sheets, so in sheet 1 to bring
the date enter

=index(sheet2!$A$2:$A$10000,match(D2,sheet2!$D$2:$ D$10000,0),match(E2,sheet2!$E$2:$E$10000,0))

in cell B2 enter

=index(sheet2!$B$2:$B$10000,match(D2,sheet2!$D$2:$ D$10000,0),match(E2,sheet2!$E$2:$E$10000,0))

"Sasikiran" wrote:

Hello,

I am looking for a formula which looks for 2 specific text values which are
there in sheet1, matches with the same text in sheet2 and displays the
corresponding value which is there in sheet2 on a cell in sheet1.

Let me explain with an example.

Sheet1 has data similar to this

Date Time Emp Number Name Designation
= = 23 Bob Manager


The cell which displays Time should match the Name and Designation in sheet1
with the same Name and Designation in sheet2 and display the corresponding
Date and Time value present in sheet2 on to sheet1

Sheet2 has raw data in these headers

Date Time Emp Number Name
27-Apr 18:00 23 Bob
27-Apr 18:22 26 Kate


Please help

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default MATCH

Hope you have only one entry in Sheet2 for an employee name/designation

In cell A2
=SUMPRODUCT((Sheet2!D1:D100=D2)*(Sheet2!E1:E100=E2 ),Sheet2!A1:A100)
In cell B2
=SUMPRODUCT((Sheet2!D1:D100=D2)*(Sheet2!E1:E100=E2 ),Sheet2!B1:B100)

Employee number is unique...so the below SUMIF() should do in your case....
=SUMIF(Sheet2!C:C,C3,Sheet1!A:A)

PS: Please note that the above formulas are only specific to your data...

--
Jacob (MVP - Excel)


"Sasikiran" wrote:

Hello,

I am looking for a formula which looks for 2 specific text values which are
there in sheet1, matches with the same text in sheet2 and displays the
corresponding value which is there in sheet2 on a cell in sheet1.

Let me explain with an example.

Sheet1 has data similar to this

Date Time Emp Number Name Designation
= = 23 Bob Manager


The cell which displays Time should match the Name and Designation in sheet1
with the same Name and Designation in sheet2 and display the corresponding
Date and Time value present in sheet2 on to sheet1

Sheet2 has raw data in these headers

Date Time Emp Number Name
27-Apr 18:00 23 Bob
27-Apr 18:22 26 Kate


Please help

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
Lookup Formula: Return 1st match, then 2nd match, then 3rd match Scott Excel Discussion (Misc queries) 4 December 11th 09 05:50 AM
index(match) Wind Uplift Calculations (match four conditions) JMeier Excel Worksheet Functions 8 August 1st 08 01:45 AM
MATCH Multiple Criteria & Return Previous / Penultimate Match Sam via OfficeKB.com Excel Worksheet Functions 27 October 6th 07 01:39 AM
index match array function-returning only first match, need last. Julie Olsen Excel Worksheet Functions 3 December 29th 06 12:50 AM
Lookup? Match? pulling rows from one spreadsheet to match a text f cjax Excel Worksheet Functions 3 July 21st 06 02:51 PM


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