Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Lookup an exact Value with a range

Table - 1 : -
A B C D E
Start_SR End_SR Qnty Party Item
1 1 10 10 A X
2 25 50 26 B Y
3 75 100 26 C Z
4 200 600 401 E XX
5 2156 2550 395 D YY
6 1500 1599 100 F ZZ

Table - 2 : -
SR Party Item
2 =VLOOKUP(H3,B2:E8,4,1)
1100
500 =LOOKUP(H5,B2:E8)
76
1200
2200
In Table-1 I have some data with a range ( Columd A - B) which range billed
out against the party and item...... want to pick up the Party & Item in the
Table-2..... I used these two functions.... but it is working when the both
data is shorted and takes the nearest value....... But i want to the exact
value and randomly........

Pls help.....

Regards,
Devabrata



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Lookup an exact Value with a range

If you are getting #NA there are two possiblities
1. The lookup value in H3 is not in the first column of the array Column B
2. Either the value in H3 or the valee in Col B is having decimals are
formatted to display differently..so it will not be a exact match...

The formula should work. Try out with values manaully entered in to the
cell...

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


"Devabrata Mullick" wrote:

By using this argument the outcomes is "#N/A"

"Ashish Mathur" wrote:

Hi,

Instead of 1 in the last arguent, use a 0

=VLOOKUP(H3,B2:E8,4,0)

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Devabrata Mullick" <Devabrata wrote in
message ...
Table - 1 : -
A B C D E
Start_SR End_SR Qnty Party Item
1 1 10 10 A X
2 25 50 26 B Y
3 75 100 26 C Z
4 200 600 401 E XX
5 2156 2550 395 D YY
6 1500 1599 100 F ZZ

Table - 2 : -
SR Party Item
2 =VLOOKUP(H3,B2:E8,4,1)
1100
500 =LOOKUP(H5,B2:E8)
76
1200
2200
In Table-1 I have some data with a range ( Columd A - B) which range
billed
out against the party and item...... want to pick up the Party & Item in
the
Table-2..... I used these two functions.... but it is working when the
both
data is shorted and takes the nearest value....... But i want to the exact
value and randomly........

Pls help.....

Regards,
Devabrata



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Lookup an exact Value with a range

Hi Jacob, Thankx a lot...... But I hope you couldn't fot my problem.... There
is a range (Column B to Column C) and against this range we have the Party
name and Item name..........
We need to pick up the party name and the Item name from that range against
the SR( Table - II)........


"Jacob Skaria" wrote:

If you are getting #NA there are two possiblities
1. The lookup value in H3 is not in the first column of the array Column B
2. Either the value in H3 or the valee in Col B is having decimals are
formatted to display differently..so it will not be a exact match...

The formula should work. Try out with values manaully entered in to the
cell...

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


"Devabrata Mullick" wrote:

By using this argument the outcomes is "#N/A"

"Ashish Mathur" wrote:

Hi,

Instead of 1 in the last arguent, use a 0

=VLOOKUP(H3,B2:E8,4,0)

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Devabrata Mullick" <Devabrata wrote in
message ...
Table - 1 : -
A B C D E
Start_SR End_SR Qnty Party Item
1 1 10 10 A X
2 25 50 26 B Y
3 75 100 26 C Z
4 200 600 401 E XX
5 2156 2550 395 D YY
6 1500 1599 100 F ZZ

Table - 2 : -
SR Party Item
2 =VLOOKUP(H3,B2:E8,4,1)
1100
500 =LOOKUP(H5,B2:E8)
76
1200
2200
In Table-1 I have some data with a range ( Columd A - B) which range
billed
out against the party and item...... want to pick up the Party & Item in
the
Table-2..... I used these two functions.... but it is working when the
both
data is shorted and takes the nearest value....... But i want to the exact
value and randomly........

Pls help.....

Regards,
Devabrata





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Lookup an exact Value with a range

Try the below..

Table1: Row1 with header and data starts from Row2

Col A Col B Col C Col D Col E
Start_SR End_SR Qnty Party Item
1 10 10 A X
25 50 26 B Y
75 100 26 C Z
200 600 401 E XX
2156 2550 395 D YY
1500 1599 100 F ZZ

Table2: in Column H/I/J. Headers in Row 1

Col H Col I Col J
SR Party Item
1598 =formula1 =formula2

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}"

Formula1 in cell I2 (and copy down as required)
=INDEX($D$1:$D$7,MATCH(1,($A$1:$A$7<=H2)*($B$1:$B$ 7=H2)))

Formula2 in cell J2 (and copy down as required)
=INDEX($E$1:$E$7,MATCH(1,($A$1:$A$7<=H2)*($B$1:$B$ 7=H2)))


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


"Devabrata Mullick" wrote:

Hi Jacob, Thankx a lot...... But I hope you couldn't fot my problem.... There
is a range (Column B to Column C) and against this range we have the Party
name and Item name..........
We need to pick up the party name and the Item name from that range against
the SR( Table - II)........


"Jacob Skaria" wrote:

If you are getting #NA there are two possiblities
1. The lookup value in H3 is not in the first column of the array Column B
2. Either the value in H3 or the valee in Col B is having decimals are
formatted to display differently..so it will not be a exact match...

The formula should work. Try out with values manaully entered in to the
cell...

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


"Devabrata Mullick" wrote:

By using this argument the outcomes is "#N/A"

"Ashish Mathur" wrote:

Hi,

Instead of 1 in the last arguent, use a 0

=VLOOKUP(H3,B2:E8,4,0)

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Devabrata Mullick" <Devabrata wrote in
message ...
Table - 1 : -
A B C D E
Start_SR End_SR Qnty Party Item
1 1 10 10 A X
2 25 50 26 B Y
3 75 100 26 C Z
4 200 600 401 E XX
5 2156 2550 395 D YY
6 1500 1599 100 F ZZ

Table - 2 : -
SR Party Item
2 =VLOOKUP(H3,B2:E8,4,1)
1100
500 =LOOKUP(H5,B2:E8)
76
1200
2200
In Table-1 I have some data with a range ( Columd A - B) which range
billed
out against the party and item...... want to pick up the Party & Item in
the
Table-2..... I used these two functions.... but it is working when the
both
data is shorted and takes the nearest value....... But i want to the exact
value and randomly........

Pls help.....

Regards,
Devabrata



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Lookup an exact Value with a range

thnkx.... if possiable i can send you the speciment data......

"Jacob Skaria" wrote:

Try the below..

Table1: Row1 with header and data starts from Row2

Col A Col B Col C Col D Col E
Start_SR End_SR Qnty Party Item
1 10 10 A X
25 50 26 B Y
75 100 26 C Z
200 600 401 E XX
2156 2550 395 D YY
1500 1599 100 F ZZ

Table2: in Column H/I/J. Headers in Row 1

Col H Col I Col J
SR Party Item
1598 =formula1 =formula2

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}"

Formula1 in cell I2 (and copy down as required)
=INDEX($D$1:$D$7,MATCH(1,($A$1:$A$7<=H2)*($B$1:$B$ 7=H2)))

Formula2 in cell J2 (and copy down as required)
=INDEX($E$1:$E$7,MATCH(1,($A$1:$A$7<=H2)*($B$1:$B$ 7=H2)))


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


"Devabrata Mullick" wrote:

Hi Jacob, Thankx a lot...... But I hope you couldn't fot my problem.... There
is a range (Column B to Column C) and against this range we have the Party
name and Item name..........
We need to pick up the party name and the Item name from that range against
the SR( Table - II)........


"Jacob Skaria" wrote:

If you are getting #NA there are two possiblities
1. The lookup value in H3 is not in the first column of the array Column B
2. Either the value in H3 or the valee in Col B is having decimals are
formatted to display differently..so it will not be a exact match...

The formula should work. Try out with values manaully entered in to the
cell...

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


"Devabrata Mullick" wrote:

By using this argument the outcomes is "#N/A"

"Ashish Mathur" wrote:

Hi,

Instead of 1 in the last arguent, use a 0

=VLOOKUP(H3,B2:E8,4,0)

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Devabrata Mullick" <Devabrata wrote in
message ...
Table - 1 : -
A B C D E
Start_SR End_SR Qnty Party Item
1 1 10 10 A X
2 25 50 26 B Y
3 75 100 26 C Z
4 200 600 401 E XX
5 2156 2550 395 D YY
6 1500 1599 100 F ZZ

Table - 2 : -
SR Party Item
2 =VLOOKUP(H3,B2:E8,4,1)
1100
500 =LOOKUP(H5,B2:E8)
76
1200
2200
In Table-1 I have some data with a range ( Columd A - B) which range
billed
out against the party and item...... want to pick up the Party & Item in
the
Table-2..... I used these two functions.... but it is working when the
both
data is shorted and takes the nearest value....... But i want to the exact
value and randomly........

Pls help.....

Regards,
Devabrata



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Lookup an exact Value with a range

mail ID please...

"Jacob Skaria" wrote:

Try the below..

Table1: Row1 with header and data starts from Row2

Col A Col B Col C Col D Col E
Start_SR End_SR Qnty Party Item
1 10 10 A X
25 50 26 B Y
75 100 26 C Z
200 600 401 E XX
2156 2550 395 D YY
1500 1599 100 F ZZ

Table2: in Column H/I/J. Headers in Row 1

Col H Col I Col J
SR Party Item
1598 =formula1 =formula2

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}"

Formula1 in cell I2 (and copy down as required)
=INDEX($D$1:$D$7,MATCH(1,($A$1:$A$7<=H2)*($B$1:$B$ 7=H2)))

Formula2 in cell J2 (and copy down as required)
=INDEX($E$1:$E$7,MATCH(1,($A$1:$A$7<=H2)*($B$1:$B$ 7=H2)))


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


"Devabrata Mullick" wrote:

Hi Jacob, Thankx a lot...... But I hope you couldn't fot my problem.... There
is a range (Column B to Column C) and against this range we have the Party
name and Item name..........
We need to pick up the party name and the Item name from that range against
the SR( Table - II)........


"Jacob Skaria" wrote:

If you are getting #NA there are two possiblities
1. The lookup value in H3 is not in the first column of the array Column B
2. Either the value in H3 or the valee in Col B is having decimals are
formatted to display differently..so it will not be a exact match...

The formula should work. Try out with values manaully entered in to the
cell...

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


"Devabrata Mullick" wrote:

By using this argument the outcomes is "#N/A"

"Ashish Mathur" wrote:

Hi,

Instead of 1 in the last arguent, use a 0

=VLOOKUP(H3,B2:E8,4,0)

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Devabrata Mullick" <Devabrata wrote in
message ...
Table - 1 : -
A B C D E
Start_SR End_SR Qnty Party Item
1 1 10 10 A X
2 25 50 26 B Y
3 75 100 26 C Z
4 200 600 401 E XX
5 2156 2550 395 D YY
6 1500 1599 100 F ZZ

Table - 2 : -
SR Party Item
2 =VLOOKUP(H3,B2:E8,4,1)
1100
500 =LOOKUP(H5,B2:E8)
76
1200
2200
In Table-1 I have some data with a range ( Columd A - B) which range
billed
out against the party and item...... want to pick up the Party & Item in
the
Table-2..... I used these two functions.... but it is working when the
both
data is shorted and takes the nearest value....... But i want to the exact
value and randomly........

Pls help.....

Regards,
Devabrata



  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Lookup an exact Value with a range

hi Jacob,
This is not working properly....... It picks up the nearst value or the last
value of the range when shorting ....

"Jacob Skaria" wrote:

Try the below..

Table1: Row1 with header and data starts from Row2

Col A Col B Col C Col D Col E
Start_SR End_SR Qnty Party Item
1 10 10 A X
25 50 26 B Y
75 100 26 C Z
200 600 401 E XX
2156 2550 395 D YY
1500 1599 100 F ZZ

Table2: in Column H/I/J. Headers in Row 1

Col H Col I Col J
SR Party Item
1598 =formula1 =formula2

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}"

Formula1 in cell I2 (and copy down as required)
=INDEX($D$1:$D$7,MATCH(1,($A$1:$A$7<=H2)*($B$1:$B$ 7=H2)))

Formula2 in cell J2 (and copy down as required)
=INDEX($E$1:$E$7,MATCH(1,($A$1:$A$7<=H2)*($B$1:$B$ 7=H2)))


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


"Devabrata Mullick" wrote:

Hi Jacob, Thankx a lot...... But I hope you couldn't fot my problem.... There
is a range (Column B to Column C) and against this range we have the Party
name and Item name..........
We need to pick up the party name and the Item name from that range against
the SR( Table - II)........


"Jacob Skaria" wrote:

If you are getting #NA there are two possiblities
1. The lookup value in H3 is not in the first column of the array Column B
2. Either the value in H3 or the valee in Col B is having decimals are
formatted to display differently..so it will not be a exact match...

The formula should work. Try out with values manaully entered in to the
cell...

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


"Devabrata Mullick" wrote:

By using this argument the outcomes is "#N/A"

"Ashish Mathur" wrote:

Hi,

Instead of 1 in the last arguent, use a 0

=VLOOKUP(H3,B2:E8,4,0)

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Devabrata Mullick" <Devabrata wrote in
message ...
Table - 1 : -
A B C D E
Start_SR End_SR Qnty Party Item
1 1 10 10 A X
2 25 50 26 B Y
3 75 100 26 C Z
4 200 600 401 E XX
5 2156 2550 395 D YY
6 1500 1599 100 F ZZ

Table - 2 : -
SR Party Item
2 =VLOOKUP(H3,B2:E8,4,1)
1100
500 =LOOKUP(H5,B2:E8)
76
1200
2200
In Table-1 I have some data with a range ( Columd A - B) which range
billed
out against the party and item...... want to pick up the Party & Item in
the
Table-2..... I used these two functions.... but it is working when the
both
data is shorted and takes the nearest value....... But i want to the exact
value and randomly........

Pls help.....

Regards,
Devabrata



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 Exact functions? Roge New Users to Excel 6 September 28th 08 01:11 PM
Need to do an EXACT LOOKUP archsmooth Excel Worksheet Functions 1 June 4th 07 06:16 PM
formula to sort a range so that it matches the exact rows of a column that is outside that range? steveo Excel Discussion (Misc queries) 1 June 18th 06 02:05 AM
LookUp - Exact only Desparate Excel Worksheet Functions 2 November 11th 04 09:52 AM
LookUp - Exact only Desparate Excel Worksheet Functions 1 November 11th 04 09:45 AM


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