Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 50
Default Proble with using match function

I have made a year wise data base in different sheets like
A B C
D E
1 Months Bill Amount Received Amount Due / Advance Remark
2 Apr'04 45,342.50 32,248.00 13,094.50
Due
3 May'04 62,428.00 68,685.00 6,257.00
Advance
to be continue.... end of month
I have made also a report sheet to see details report (bill amount, receive
amount, etc) of a period (as per choise) by puting moth & year in cell A2. So
I have used a formula in B2 as below :-
=if(match(a2,Yr_0405,0),vlookup(a2,Yr_0405,2,0),if (match(a2,Yr_0506,0),vlookup(a2,Yr_0506,2,0),""))
Result show "#N/A,
Note = Yr_0405 is refrernce of Year 0405 data base
Yr_0506 is reference of Year 0506 data base
what should I do to see the report, help me.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 171
Default Proble with using match function

The MATCH function is returning either an index (if it matches) or NA. But
the condition in the IF function should be TRUE/FALSE. So enclose the match
in an ISNUMBER test:
=if(isnumber(match(a2,Yr_0405,0)),vlookup(a2,Yr_04 05,2,0),if(isnumber(match(a2,Yr_0506,0)),vlookup(a 2,Yr_0506,2,0),""))


"Montu" wrote:

I have made a year wise data base in different sheets like
A B C
D E
1 Months Bill Amount Received Amount Due / Advance Remark
2 Apr'04 45,342.50 32,248.00 13,094.50
Due
3 May'04 62,428.00 68,685.00 6,257.00
Advance
to be continue.... end of month
I have made also a report sheet to see details report (bill amount, receive
amount, etc) of a period (as per choise) by puting moth & year in cell A2. So
I have used a formula in B2 as below :-
=if(match(a2,Yr_0405,0),vlookup(a2,Yr_0405,2,0),if (match(a2,Yr_0506,0),vlookup(a2,Yr_0506,2,0),""))
Result show "#N/A,
Note = Yr_0405 is refrernce of Year 0405 data base
Yr_0506 is reference of Year 0506 data base
what should I do to see the report, help me.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Proble with using match function

It looks like Yr_0405 and Yr_0506 are 2 dimensional arrays since you're
using them in VLOOKUP and specifying the column_index_number of 2. You're
also referencing these same named ranges in MATCH but MATCH can only work on
a one dimensional array as the lookup_array.

Try it like this:

=IF(COUNTIF(INDEX(Yr_0405,,1),A2),VLOOKUP(A2,Yr_04 05,2,0),IF(COUNTIF(INDEX(Yr_0506,,1),A2),VLOOKUP(A 2,Yr_0506,2,0),""))

--
Biff
Microsoft Excel MVP


"Montu" wrote in message
...
I have made a year wise data base in different sheets like
A B C
D E
1 Months Bill Amount Received Amount Due / Advance
Remark
2 Apr'04 45,342.50 32,248.00 13,094.50
Due
3 May'04 62,428.00 68,685.00 6,257.00
Advance
to be continue.... end of month
I have made also a report sheet to see details report (bill amount,
receive
amount, etc) of a period (as per choise) by puting moth & year in cell A2.
So
I have used a formula in B2 as below :-
=if(match(a2,Yr_0405,0),vlookup(a2,Yr_0405,2,0),if (match(a2,Yr_0506,0),vlookup(a2,Yr_0506,2,0),""))
Result show "#N/A,
Note = Yr_0405 is refrernce of Year 0405 data base
Yr_0506 is reference of Year 0506 data base
what should I do to see the report, help me.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 50
Default Problem with using match function

Thank you for your valuable suggestion, it's working too good. But there is a
little bit problem I found. Actually the fault was in my site. I was forget
to write about my quary. So beg excuse for this reason. Now I'm writing about
my quaries - I have entered an extra row before the month cell (perv. A2, now
A3) in report sheet. Now I want that, if I write moth in the proper cell (A3)
the previous cell show the opeing amout of the write month.
supose in A3 choose Jun-06 then A2 show the closing balance of May-06. So is
it possible ? pls help me.

"T. Valko" wrote:

It looks like Yr_0405 and Yr_0506 are 2 dimensional arrays since you're
using them in VLOOKUP and specifying the column_index_number of 2. You're
also referencing these same named ranges in MATCH but MATCH can only work on
a one dimensional array as the lookup_array.

Try it like this:

=IF(COUNTIF(INDEX(Yr_0405,,1),A2),VLOOKUP(A2,Yr_04 05,2,0),IF(COUNTIF(INDEX(Yr_0506,,1),A2),VLOOKUP(A 2,Yr_0506,2,0),""))

--
Biff
Microsoft Excel MVP


"Montu" wrote in message
...
I have made a year wise data base in different sheets like
A B C
D E
1 Months Bill Amount Received Amount Due / Advance
Remark
2 Apr'04 45,342.50 32,248.00 13,094.50
Due
3 May'04 62,428.00 68,685.00 6,257.00
Advance
to be continue.... end of month
I have made also a report sheet to see details report (bill amount,
receive
amount, etc) of a period (as per choise) by puting moth & year in cell A2.
So
I have used a formula in B2 as below :-
=if(match(a2,Yr_0405,0),vlookup(a2,Yr_0405,2,0),if (match(a2,Yr_0506,0),vlookup(a2,Yr_0506,2,0),""))
Result show "#N/A,
Note = Yr_0405 is refrernce of Year 0405 data base
Yr_0506 is reference of Year 0506 data base
what should I do to see the report, help me.




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
how can we get unique values in match function for same match key. Xcel[_2_] Excel Worksheet Functions 11 December 7th 07 08:13 PM
index match array function-returning only first match, need last. Julie Olsen Excel Worksheet Functions 3 December 29th 06 12:50 AM
Match as well as does not match array function Vikram Dhemare Excel Discussion (Misc queries) 7 April 25th 06 09:15 AM
Hlookup or Vlookup problem? or wich other solution? Complex Proble Micos3 Excel Discussion (Misc queries) 2 March 6th 06 04:35 PM
Import/Export Proble. Urgent axissm Excel Discussion (Misc queries) 1 February 19th 06 06:46 PM


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

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"