Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CMO CMO is offline
external usenet poster
 
Posts: 3
Default looking up values in 1 column based on 2 other columns

Hi,

I've been trying to use the INDEX function to lookup values in 1 column
based on 2 others. The formula I have is below, but the result I'm getting
is "#N/A". I have confirmed the formula using Ctrl+Shift+Enter, but that
doesn't seem to have helped.

Formula -
=INDEX(Amendments!$G$2:$G$10000,MATCH($C$10&$C$21, Amendments!$A$2:$A$10000&Amendments!$F$2:$F$10000, 0))

C10 is a field containing a number and C21 is a field containing a date.

All help will be much appreciated!

Thx

Chris
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default looking up values in 1 column based on 2 other columns

Try entered with Ctrl+Shift+Enter:

=INDEX(Amendments!$G$2:$G$10000,MATCH(1,($C$10=Ame ndments!$A$2:$A$10000)*(C21=Amendments!$F$2:$F$100 00),0))

HTH

"CMO" wrote:

Hi,

I've been trying to use the INDEX function to lookup values in 1 column
based on 2 others. The formula I have is below, but the result I'm getting
is "#N/A". I have confirmed the formula using Ctrl+Shift+Enter, but that
doesn't seem to have helped.

Formula -
=INDEX(Amendments!$G$2:$G$10000,MATCH($C$10&$C$21, Amendments!$A$2:$A$10000&Amendments!$F$2:$F$10000, 0))

C10 is a field containing a number and C21 is a field containing a date.

All help will be much appreciated!

Thx

Chris

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CMO CMO is offline
external usenet poster
 
Posts: 3
Default looking up values in 1 column based on 2 other columns

Thanks, I'm still getting #N/A, are there any limitations on the INDEX
function? As the result will be text.

"Toppers" wrote:

Try entered with Ctrl+Shift+Enter:

=INDEX(Amendments!$G$2:$G$10000,MATCH(1,($C$10=Ame ndments!$A$2:$A$10000)*(C21=Amendments!$F$2:$F$100 00),0))

HTH

"CMO" wrote:

Hi,

I've been trying to use the INDEX function to lookup values in 1 column
based on 2 others. The formula I have is below, but the result I'm getting
is "#N/A". I have confirmed the formula using Ctrl+Shift+Enter, but that
doesn't seem to have helped.

Formula -
=INDEX(Amendments!$G$2:$G$10000,MATCH($C$10&$C$21, Amendments!$A$2:$A$10000&Amendments!$F$2:$F$10000, 0))

C10 is a field containing a number and C21 is a field containing a date.

All help will be much appreciated!

Thx

Chris

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default looking up values in 1 column based on 2 other columns

It works OK for me; my sample data .... A2=21,F2=01/08/2006,
C10=21,C21=01/08/2006

Are you sure all the data is the correct format e.g. not comparing numbers
with text?

"CMO" wrote:

Thanks, I'm still getting #N/A, are there any limitations on the INDEX
function? As the result will be text.

"Toppers" wrote:

Try entered with Ctrl+Shift+Enter:

=INDEX(Amendments!$G$2:$G$10000,MATCH(1,($C$10=Ame ndments!$A$2:$A$10000)*(C21=Amendments!$F$2:$F$100 00),0))

HTH

"CMO" wrote:

Hi,

I've been trying to use the INDEX function to lookup values in 1 column
based on 2 others. The formula I have is below, but the result I'm getting
is "#N/A". I have confirmed the formula using Ctrl+Shift+Enter, but that
doesn't seem to have helped.

Formula -
=INDEX(Amendments!$G$2:$G$10000,MATCH($C$10&$C$21, Amendments!$A$2:$A$10000&Amendments!$F$2:$F$10000, 0))

C10 is a field containing a number and C21 is a field containing a date.

All help will be much appreciated!

Thx

Chris

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CMO CMO is offline
external usenet poster
 
Posts: 3
Default looking up values in 1 column based on 2 other columns

User error!!

Thanks, works spot on.

Chris

"Toppers" wrote:

It works OK for me; my sample data .... A2=21,F2=01/08/2006,
C10=21,C21=01/08/2006

Are you sure all the data is the correct format e.g. not comparing numbers
with text?

"CMO" wrote:

Thanks, I'm still getting #N/A, are there any limitations on the INDEX
function? As the result will be text.

"Toppers" wrote:

Try entered with Ctrl+Shift+Enter:

=INDEX(Amendments!$G$2:$G$10000,MATCH(1,($C$10=Ame ndments!$A$2:$A$10000)*(C21=Amendments!$F$2:$F$100 00),0))

HTH

"CMO" wrote:

Hi,

I've been trying to use the INDEX function to lookup values in 1 column
based on 2 others. The formula I have is below, but the result I'm getting
is "#N/A". I have confirmed the formula using Ctrl+Shift+Enter, but that
doesn't seem to have helped.

Formula -
=INDEX(Amendments!$G$2:$G$10000,MATCH($C$10&$C$21, Amendments!$A$2:$A$10000&Amendments!$F$2:$F$10000, 0))

C10 is a field containing a number and C21 is a field containing a date.

All help will be much appreciated!

Thx

Chris



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default looking up values in 1 column based on 2 other columns

Good! and thank you for the feedback.

"CMO" wrote:

User error!!

Thanks, works spot on.

Chris

"Toppers" wrote:

It works OK for me; my sample data .... A2=21,F2=01/08/2006,
C10=21,C21=01/08/2006

Are you sure all the data is the correct format e.g. not comparing numbers
with text?

"CMO" wrote:

Thanks, I'm still getting #N/A, are there any limitations on the INDEX
function? As the result will be text.

"Toppers" wrote:

Try entered with Ctrl+Shift+Enter:

=INDEX(Amendments!$G$2:$G$10000,MATCH(1,($C$10=Ame ndments!$A$2:$A$10000)*(C21=Amendments!$F$2:$F$100 00),0))

HTH

"CMO" wrote:

Hi,

I've been trying to use the INDEX function to lookup values in 1 column
based on 2 others. The formula I have is below, but the result I'm getting
is "#N/A". I have confirmed the formula using Ctrl+Shift+Enter, but that
doesn't seem to have helped.

Formula -
=INDEX(Amendments!$G$2:$G$10000,MATCH($C$10&$C$21, Amendments!$A$2:$A$10000&Amendments!$F$2:$F$10000, 0))

C10 is a field containing a number and C21 is a field containing a date.

All help will be much appreciated!

Thx

Chris

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 databases based on a column with same values jasonsgoat Excel Discussion (Misc queries) 0 April 4th 06 06:35 PM
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
sumproduct 2 columns based on criteria in 3rd column excel guru i''m not Excel Discussion (Misc queries) 5 December 31st 05 03:47 PM
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Excel Worksheet Functions 9 July 31st 05 03:37 AM
Arithmetical Mode of Criteria in Multiple Non-Adjacent columns Sam via OfficeKB.com Excel Worksheet Functions 4 July 14th 05 09:15 PM


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