Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 519
Default Index and Match


Hello from Steved

The Below Is giving me a #VALUE! What is required please to give me a result.

I need to use 2 columns in each worksheet to get a result.

Index B4:C4 "In current worksheet"

Match $C$2:$D$5000 in ""Duties Mon-Fri Worksheet""

Result $B$2:$B5000 in "Duties Mon-Fri Worksheet"

=INDEX('Duties Mon-Fri'!$B$2:$B5000,MATCH(B4:C4,'Duties
Mon-Fri'!$C$2:$D$5000,0))

Current Worksheet contains the values

Col B:B and C:C
8431 and 510

Duties Mon-Fri Worksheet contains the values

Col C:C and D:D
8431 and 510

The result is in COL B:B in Duties Mon-Fri Worksheet

The result should be 4301 but it gives me #VALUE!

Thankyou.





  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 140
Default Index and Match

Hi Steved

From what I gather you have got your data muddled up. You are trying
to match an item then move backwards and the item you are matching is
not in the idexed range. If you want to move backwards (you said the
item you were looking for was in Col B of the Duties sheet) you need
to add an offset funciton.

Here is the code which sort out the problem. Hope it helps

=OFFSET(INDEX('Duties Mon-Fri Worksheet'!$C$2:$D$5000,MATCH(B4,'Duties
Mon-Fri Worksheet'!$C$2:$C$5000,1),2),,-2)

Index - Contains the range you want to look up with the Matching item
in the left most column.

Match - contains the item you want to match, the column your matched
items will appear in and the number 1 for an exact match.

Offset is uesd to move one column back to Col B from your lookup
region.


Take care

Marcus
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Index and Match


You have multiple conditions to match. You will need to use a array formula
as below

In current worksheet

B4 = 8431
C4 = 510

In D4 enter the formula (all in one line). Please note that this is an array
formula. Within the cell in edit mode (F2) paste this formula and press
Ctrl+Shift+Enter to apply this formula. If successful in 'Formula Bar' you
can notice the curly braces at both ends like "{=<formula}"

=INDEX('Duties Mon-Fri'!$B$2:$B$5000,MATCH(1,('Duties
Mon-Fri'!$C$2:$C$5000=B4)*('Duties Mon-Fri'!$D$2:$D$5000=C4),0))


If this post helps click Yes
---------------
Jacob Skaria


"Steved" wrote:

Hello from Steved

The Below Is giving me a #VALUE! What is required please to give me a result.

I need to use 2 columns in each worksheet to get a result.

Index B4:C4 "In current worksheet"

Match $C$2:$D$5000 in ""Duties Mon-Fri Worksheet""

Result $B$2:$B5000 in "Duties Mon-Fri Worksheet"

=INDEX('Duties Mon-Fri'!$B$2:$B5000,MATCH(B4:C4,'Duties
Mon-Fri'!$C$2:$D$5000,0))

Current Worksheet contains the values

Col B:B and C:C
8431 and 510

Duties Mon-Fri Worksheet contains the values

Col C:C and D:D
8431 and 510

The result is in COL B:B in Duties Mon-Fri Worksheet

The result should be 4301 but it gives me #VALUE!

Thankyou.





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 519
Default Index and Match


Hello Jacob

Thankyou very much for solving and working on my Issue, It works perfectly.

Cheers

Steved

"Jacob Skaria" wrote:

You have multiple conditions to match. You will need to use a array formula
as below

In current worksheet

B4 = 8431
C4 = 510

In D4 enter the formula (all in one line). Please note that this is an array
formula. Within the cell in edit mode (F2) paste this formula and press
Ctrl+Shift+Enter to apply this formula. If successful in 'Formula Bar' you
can notice the curly braces at both ends like "{=<formula}"

=INDEX('Duties Mon-Fri'!$B$2:$B$5000,MATCH(1,('Duties
Mon-Fri'!$C$2:$C$5000=B4)*('Duties Mon-Fri'!$D$2:$D$5000=C4),0))


If this post helps click Yes
---------------
Jacob Skaria


"Steved" wrote:

Hello from Steved

The Below Is giving me a #VALUE! What is required please to give me a result.

I need to use 2 columns in each worksheet to get a result.

Index B4:C4 "In current worksheet"

Match $C$2:$D$5000 in ""Duties Mon-Fri Worksheet""

Result $B$2:$B5000 in "Duties Mon-Fri Worksheet"

=INDEX('Duties Mon-Fri'!$B$2:$B5000,MATCH(B4:C4,'Duties
Mon-Fri'!$C$2:$D$5000,0))

Current Worksheet contains the values

Col B:B and C:C
8431 and 510

Duties Mon-Fri Worksheet contains the values

Col C:C and D:D
8431 and 510

The result is in COL B:B in Duties Mon-Fri Worksheet

The result should be 4301 but it gives me #VALUE!

Thankyou.





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
Find Exact Match using INDEX, MATCH DoubleUU Excel Worksheet Functions 3 August 15th 08 02:42 PM
index(match) Wind Uplift Calculations (match four conditions) JMeier Excel Worksheet Functions 8 August 1st 08 01:45 AM
index match array function-returning only first match, need last. Julie Olsen Excel Worksheet Functions 3 December 29th 06 12:50 AM
How do I display more than one match in a Index/Match formula? Trish Excel Worksheet Functions 0 September 26th 05 10:21 PM
index,match,match on un-sorted data Brisbane Rob Excel Worksheet Functions 3 September 24th 05 10:04 PM


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