Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default vlookup again

Hi experts

Please solve this plane sample with formula

A B C .............................. H I
1 . . . ..............................10 1
2 10 . 1 ............................. 10 2
3 . . . ..............................10 3
4 . 10 2 .............................N/A N/A
5 . . .
6 . 10 3
7 . . .
insted of N/A in last vlookup replace blank
Thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,173
Default vlookup again

Bijan

I Think you will need to warp it in an IF(ISNA... like

=IF(ISNA(Your_Original_Vlookup),"",Your_Original_V lookup)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"bijan" wrote in message
...
Hi experts

Please solve this plane sample with formula

A B C .............................. H I
1 . . . ..............................10 1
2 10 . 1 ............................. 10 2
3 . . . ..............................10 3
4 . 10 2 .............................N/A N/A
5 . . .
6 . 10 3
7 . . .
insted of N/A in last vlookup replace blank
Thanks in advance


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,173
Default vlookup again

or even wrap ;-)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Nick Hodge" wrote in message
...
Bijan

I Think you will need to warp it in an IF(ISNA... like

=IF(ISNA(Your_Original_Vlookup),"",Your_Original_V lookup)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"bijan" wrote in message
...
Hi experts

Please solve this plane sample with formula

A B C .............................. H I
1 . . . ..............................10 1
2 10 . 1 ............................. 10 2
3 . . . ..............................10 3
4 . 10 2 .............................N/A N/A
5 . . .
6 . 10 3
7 . . .
insted of N/A in last vlookup replace blank
Thanks in advance



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default vlookup again

Yes, you are right,but how can i do it , should i write 4 formula from h1 to
h4?

"Nick Hodge" wrote:

or even wrap ;-)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Nick Hodge" wrote in message
...
Bijan

I Think you will need to warp it in an IF(ISNA... like

=IF(ISNA(Your_Original_Vlookup),"",Your_Original_V lookup)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"bijan" wrote in message
...
Hi experts

Please solve this plane sample with formula

A B C .............................. H I
1 . . . ..............................10 1
2 10 . 1 ............................. 10 2
3 . . . ..............................10 3
4 . 10 2 .............................N/A N/A
5 . . .
6 . 10 3
7 . . .
insted of N/A in last vlookup replace blank
Thanks in advance



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,173
Default vlookup again

Bijan

Post your current formula

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"bijan" wrote in message
...
Yes, you are right,but how can i do it , should i write 4 formula from h1
to
h4?

"Nick Hodge" wrote:

or even wrap ;-)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Nick Hodge" wrote in message
...
Bijan

I Think you will need to warp it in an IF(ISNA... like

=IF(ISNA(Your_Original_Vlookup),"",Your_Original_V lookup)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"bijan" wrote in message
...
Hi experts

Please solve this plane sample with formula

A B C .............................. H I
1 . . . ..............................10 1
2 10 . 1 ............................. 10 2
3 . . . ..............................10 3
4 . 10 2 .............................N/A N/A
5 . . .
6 . 10 3
7 . . .
insted of N/A in last vlookup replace blank
Thanks in advance





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default vlookup again

in"H1" =vlookup(a1,tbl,3,false)
But it just return first value from my table, i need obtain secound record
in H2 and so on

"Nick Hodge" wrote:

Bijan

Post your current formula

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"bijan" wrote in message
...
Yes, you are right,but how can i do it , should i write 4 formula from h1
to
h4?

"Nick Hodge" wrote:

or even wrap ;-)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Nick Hodge" wrote in message
...
Bijan

I Think you will need to warp it in an IF(ISNA... like

=IF(ISNA(Your_Original_Vlookup),"",Your_Original_V lookup)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"bijan" wrote in message
...
Hi experts

Please solve this plane sample with formula

A B C .............................. H I
1 . . . ..............................10 1
2 10 . 1 ............................. 10 2
3 . . . ..............................10 3
4 . 10 2 .............................N/A N/A
5 . . .
6 . 10 3
7 . . .
insted of N/A in last vlookup replace blank
Thanks in advance



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,173
Default vlookup again

Bijan

I'm sorry if I'm not understanding, but presuming tbl is a range name, then
just copying the formula down (Dragging using the fill handle if you like)
should change the references in the formula as the lookup value (A1 in your
example) is relative and when dragged down to the next cell down that will
automatically become A2 so you will be looking up the value in A2 in your
range (tbl) and returning the match 3 columns to the right in tbl.

To return a blank when you get a #N/A then use the formula structure I
posted so you end up with, in H1

=IF(ISNA(VLOOKUP(A1,tbl,3,FALSE)),"",VLOOKUP(A1,tb l,3,FALSE))

Now just copy this to the cells below


--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"bijan" wrote in message
...
in"H1" =vlookup(a1,tbl,3,false)
But it just return first value from my table, i need obtain secound record
in H2 and so on

"Nick Hodge" wrote:

Bijan

Post your current formula

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"bijan" wrote in message
...
Yes, you are right,but how can i do it , should i write 4 formula from
h1
to
h4?

"Nick Hodge" wrote:

or even wrap ;-)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Nick Hodge" wrote in
message
...
Bijan

I Think you will need to warp it in an IF(ISNA... like

=IF(ISNA(Your_Original_Vlookup),"",Your_Original_V lookup)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"bijan" wrote in message
...
Hi experts

Please solve this plane sample with formula

A B C .............................. H I
1 . . . ..............................10 1
2 10 . 1 ............................. 10 2
3 . . . ..............................10 3
4 . 10 2 .............................N/A N/A
5 . . .
6 . 10 3
7 . . .
insted of N/A in last vlookup replace blank
Thanks in advance




  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default vlookup again

nick
I posted an illastration

"Nick Hodge" wrote:

Bijan

I'm sorry if I'm not understanding, but presuming tbl is a range name, then
just copying the formula down (Dragging using the fill handle if you like)
should change the references in the formula as the lookup value (A1 in your
example) is relative and when dragged down to the next cell down that will
automatically become A2 so you will be looking up the value in A2 in your
range (tbl) and returning the match 3 columns to the right in tbl.

To return a blank when you get a #N/A then use the formula structure I
posted so you end up with, in H1

=IF(ISNA(VLOOKUP(A1,tbl,3,FALSE)),"",VLOOKUP(A1,tb l,3,FALSE))

Now just copy this to the cells below


--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"bijan" wrote in message
...
in"H1" =vlookup(a1,tbl,3,false)
But it just return first value from my table, i need obtain secound record
in H2 and so on

"Nick Hodge" wrote:

Bijan

Post your current formula

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"bijan" wrote in message
...
Yes, you are right,but how can i do it , should i write 4 formula from
h1
to
h4?

"Nick Hodge" wrote:

or even wrap ;-)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Nick Hodge" wrote in
message
...
Bijan

I Think you will need to warp it in an IF(ISNA... like

=IF(ISNA(Your_Original_Vlookup),"",Your_Original_V lookup)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"bijan" wrote in message
...
Hi experts

Please solve this plane sample with formula

A B C .............................. H I
1 . . . ..............................10 1
2 10 . 1 ............................. 10 2
3 . . . ..............................10 3
4 . 10 2 .............................N/A N/A
5 . . .
6 . 10 3
7 . . .
insted of N/A in last vlookup replace blank
Thanks in advance




  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,173
Default vlookup again

Bijan

Sorry, I must be having one of my dumb days. I see Bijan's illustration and
his formula example and my response is based on that.

Can anyone give another slant on his need, because I can't see it?

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"bijan" wrote in message
...
nick
I posted an illastration

"Nick Hodge" wrote:

Bijan

I'm sorry if I'm not understanding, but presuming tbl is a range name,
then
just copying the formula down (Dragging using the fill handle if you
like)
should change the references in the formula as the lookup value (A1 in
your
example) is relative and when dragged down to the next cell down that
will
automatically become A2 so you will be looking up the value in A2 in your
range (tbl) and returning the match 3 columns to the right in tbl.

To return a blank when you get a #N/A then use the formula structure I
posted so you end up with, in H1

=IF(ISNA(VLOOKUP(A1,tbl,3,FALSE)),"",VLOOKUP(A1,tb l,3,FALSE))

Now just copy this to the cells below


--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"bijan" wrote in message
...
in"H1" =vlookup(a1,tbl,3,false)
But it just return first value from my table, i need obtain secound
record
in H2 and so on

"Nick Hodge" wrote:

Bijan

Post your current formula

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"bijan" wrote in message
...
Yes, you are right,but how can i do it , should i write 4 formula
from
h1
to
h4?

"Nick Hodge" wrote:

or even wrap ;-)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Nick Hodge" wrote in
message
...
Bijan

I Think you will need to warp it in an IF(ISNA... like

=IF(ISNA(Your_Original_Vlookup),"",Your_Original_V lookup)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"bijan" wrote in message
...
Hi experts

Please solve this plane sample with formula

A B C .............................. H I
1 . . . ..............................10 1
2 10 . 1 ............................. 10 2
3 . . . ..............................10 3
4 . 10 2 .............................N/A N/A
5 . . .
6 . 10 3
7 . . .
insted of N/A in last vlookup replace blank
Thanks in advance





  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default vlookup again

Nick
I posted an illastration ,But it seems something wrong in your email address
to deliver my email
please write your correct email address
"Nick Hodge" wrote:

Bijan

I'm sorry if I'm not understanding, but presuming tbl is a range name, then
just copying the formula down (Dragging using the fill handle if you like)
should change the references in the formula as the lookup value (A1 in your
example) is relative and when dragged down to the next cell down that will
automatically become A2 so you will be looking up the value in A2 in your
range (tbl) and returning the match 3 columns to the right in tbl.

To return a blank when you get a #N/A then use the formula structure I
posted so you end up with, in H1

=IF(ISNA(VLOOKUP(A1,tbl,3,FALSE)),"",VLOOKUP(A1,tb l,3,FALSE))

Now just copy this to the cells below


--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"bijan" wrote in message
...
in"H1" =vlookup(a1,tbl,3,false)
But it just return first value from my table, i need obtain secound record
in H2 and so on

"Nick Hodge" wrote:

Bijan

Post your current formula

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"bijan" wrote in message
...
Yes, you are right,but how can i do it , should i write 4 formula from
h1
to
h4?

"Nick Hodge" wrote:

or even wrap ;-)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Nick Hodge" wrote in
message
...
Bijan

I Think you will need to warp it in an IF(ISNA... like

=IF(ISNA(Your_Original_Vlookup),"",Your_Original_V lookup)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"bijan" wrote in message
...
Hi experts

Please solve this plane sample with formula

A B C .............................. H I
1 . . . ..............................10 1
2 10 . 1 ............................. 10 2
3 . . . ..............................10 3
4 . 10 2 .............................N/A N/A
5 . . .
6 . 10 3
7 . . .
insted of N/A in last vlookup replace blank
Thanks in advance






  #11   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,173
Default vlookup again

Bijan

Take out the TAKETHISOUT and the ANDTHIS (Basically the bits in upper case)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"bijan" wrote in message
...
Nick
I posted an illastration ,But it seems something wrong in your email
address
to deliver my email
please write your correct email address
"Nick Hodge" wrote:

Bijan

I'm sorry if I'm not understanding, but presuming tbl is a range name,
then
just copying the formula down (Dragging using the fill handle if you
like)
should change the references in the formula as the lookup value (A1 in
your
example) is relative and when dragged down to the next cell down that
will
automatically become A2 so you will be looking up the value in A2 in your
range (tbl) and returning the match 3 columns to the right in tbl.

To return a blank when you get a #N/A then use the formula structure I
posted so you end up with, in H1

=IF(ISNA(VLOOKUP(A1,tbl,3,FALSE)),"",VLOOKUP(A1,tb l,3,FALSE))

Now just copy this to the cells below


--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"bijan" wrote in message
...
in"H1" =vlookup(a1,tbl,3,false)
But it just return first value from my table, i need obtain secound
record
in H2 and so on

"Nick Hodge" wrote:

Bijan

Post your current formula

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"bijan" wrote in message
...
Yes, you are right,but how can i do it , should i write 4 formula
from
h1
to
h4?

"Nick Hodge" wrote:

or even wrap ;-)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Nick Hodge" wrote in
message
...
Bijan

I Think you will need to warp it in an IF(ISNA... like

=IF(ISNA(Your_Original_Vlookup),"",Your_Original_V lookup)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"bijan" wrote in message
...
Hi experts

Please solve this plane sample with formula

A B C .............................. H I
1 . . . ..............................10 1
2 10 . 1 ............................. 10 2
3 . . . ..............................10 3
4 . 10 2 .............................N/A N/A
5 . . .
6 . 10 3
7 . . .
insted of N/A in last vlookup replace blank
Thanks in advance





  #12   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default vlookup again

H1:
=IF(ISERROR(SMALL(IF(($A$1:$A$6=10)+($B$1:$B$6=10) 0,ROW($A$1:$A$6)),ROW(A1))),"",10)
Enter with control + Shift + Enter rather than just enter since this is an
array formula

I1:
=IF(ISERROR(SMALL(IF(($A$1:$A$7=10)+($B$1:$B$7=10) 0,ROW($A$1:$A$7)),ROW(A1))),"",INDEX($C$1:$C$7,SM ALL(IF(($A$1:$A$6=10)+($B$1:$B$7=10)0,ROW($A$1:$A $7)),ROW(A1)),1))
Entered with Ctrl+Shift+Enter rather than just enter since this is an array
formula

Select H1:I1 and drag fill down the column.

--
Regards,
Tom Ogilvy




"bijan" wrote in message
...
Hi experts

Please solve this plane sample with formula

A B C .............................. H I
1 . . . ..............................10 1
2 10 . 1 ............................. 10 2
3 . . . ..............................10 3
4 . 10 2 .............................N/A N/A
5 . . .
6 . 10 3
7 . . .
insted of N/A in last vlookup replace blank
Thanks in advance



  #13   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default vlookup again

My test data only went to row 6, so I didn't get all the formula ranges
changes. Let me try again:

H1:
=IF(ISERROR(SMALL(IF(($A$1:$A$7=10)+($B$1:$B$7=10) 0,ROW($A$1:$A$7)),ROW(A1))),"",10)
Enter with control + Shift + Enter rather than just enter since this is an
array formula

I1:
=IF(ISERROR(SMALL(IF(($A$1:$A$7=10)+($B$1:$B$7=10) 0,ROW($A$1:$A$7)),ROW(A1))),"",INDEX($C$1:$C$7,SM ALL(IF(($A$1:$A$7=10)+($B$1:$B$7=10)0,ROW($A$1:$A $7)),ROW(A1)),1))
Entered with Ctrl+Shift+Enter rather than just enter since this is an array
formula

Select H1:I1 and drag fill down the column.

--
Regards,
Tom Ogilvy

"Tom Ogilvy" wrote in message
...
H1:
=IF(ISERROR(SMALL(IF(($A$1:$A$6=10)+($B$1:$B$6=10) 0,ROW($A$1:$A$6)),ROW(A1))),"",10)
Enter with control + Shift + Enter rather than just enter since this is an
array formula

I1:
=IF(ISERROR(SMALL(IF(($A$1:$A$7=10)+($B$1:$B$7=10) 0,ROW($A$1:$A$7)),ROW(A1))),"",INDEX($C$1:$C$7,SM ALL(IF(($A$1:$A$6=10)+($B$1:$B$7=10)0,ROW($A$1:$A $7)),ROW(A1)),1))
Entered with Ctrl+Shift+Enter rather than just enter since this is an
array formula

Select H1:I1 and drag fill down the column.

--
Regards,
Tom Ogilvy




"bijan" wrote in message
...
Hi experts

Please solve this plane sample with formula

A B C .............................. H I
1 . . . ..............................10 1
2 10 . 1 ............................. 10 2
3 . . . ..............................10 3
4 . 10 2 .............................N/A N/A
5 . . .
6 . 10 3
7 . . .
insted of N/A in last vlookup replace blank
Thanks in advance





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
If (Vlookup 0) working, but what if Vlookup cell does not exist Steve Excel Worksheet Functions 18 November 18th 09 07:33 PM
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Which is faster: VLOOKUP-worksheet or VB-array VLOOKUP? erikhs[_20_] Excel Programming 1 August 6th 06 06:18 PM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


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