Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Help with Vlookup and if

I could just behaving a very thick day but help would be very much
appreciated.

I have the following:

Sheet: PHSTB
Column A Column B Column C
1 J100 20 500
2 J100 30 100
3 J100 50 600
4 K200 20 700
5 K200 50 50

Sheet:YTD

Column A Column B Column C
1 J100 K100 K200

2 20
3 30
4 50

So I need the approiate data in the right cells on YTD and blanks where there
are no values or does not exsist. I have the following so far in cell A2:

=IF (VLOOKUP(A1,PHSTB!A1:D72,2,FALSE)="20",VLOOKUP(A2, PHSTB!A1:D72,3,FLASE),
"") this works nicely in A2 but when I drop it down to A3 and change it to
"30" of course it does not work as it only see the first line and gives a
result of "", how can I get this to read all the lines until it match's.

I hope this is clear.

Please let me know if you need any further info, and sorry if this has been
answered before but I couldn't track it down.

Thanks

Jane

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200701/1

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Help with Vlookup and if

use absolute reference isntead, change A1:D72 to $A$1:$D$72


"petes_girl via OfficeKB.com" wrote:

I could just behaving a very thick day but help would be very much
appreciated.

I have the following:

Sheet: PHSTB
Column A Column B Column C
1 J100 20 500
2 J100 30 100
3 J100 50 600
4 K200 20 700
5 K200 50 50

Sheet:YTD

Column A Column B Column C
1 J100 K100 K200

2 20
3 30
4 50

So I need the approiate data in the right cells on YTD and blanks where there
are no values or does not exsist. I have the following so far in cell A2:

=IF (VLOOKUP(A1,PHSTB!A1:D72,2,FALSE)="20",VLOOKUP(A2, PHSTB!A1:D72,3,FLASE),
"") this works nicely in A2 but when I drop it down to A3 and change it to
"30" of course it does not work as it only see the first line and gives a
result of "", how can I get this to read all the lines until it match's.

I hope this is clear.

Please let me know if you need any further info, and sorry if this has been
answered before but I couldn't track it down.

Thanks

Jane

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200701/1


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Help with Vlookup and if

Thanks for that but it still only reads the first line of each ie J100 20

Teethless mama wrote:
use absolute reference isntead, change A1:D72 to $A$1:$D$72

I could just behaving a very thick day but help would be very much
appreciated.

[quoted text clipped - 34 lines]

Jane


--
Message posted via http://www.officekb.com

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Help with Vlookup and if

Debra Dalgleish shows how to use =index(match()) for this:
http://www.contextures.com/xlFunctions03.html

I think that's what you need/want.

"petes_girl via OfficeKB.com" wrote:

I could just behaving a very thick day but help would be very much
appreciated.

I have the following:

Sheet: PHSTB
Column A Column B Column C
1 J100 20 500
2 J100 30 100
3 J100 50 600
4 K200 20 700
5 K200 50 50

Sheet:YTD

Column A Column B Column C
1 J100 K100 K200

2 20
3 30
4 50

So I need the approiate data in the right cells on YTD and blanks where there
are no values or does not exsist. I have the following so far in cell A2:

=IF (VLOOKUP(A1,PHSTB!A1:D72,2,FALSE)="20",VLOOKUP(A2, PHSTB!A1:D72,3,FLASE),
"") this works nicely in A2 but when I drop it down to A3 and change it to
"30" of course it does not work as it only see the first line and gives a
result of "", how can I get this to read all the lines until it match's.

I hope this is clear.

Please let me know if you need any further info, and sorry if this has been
answered before but I couldn't track it down.

Thanks

Jane

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200701/1


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Help with Vlookup and if

Dave, thanks for that I'll let you know. I have taken a quick look and it
seems to be what I'm after but I'll let you know.

I'm off out now

Dave Peterson wrote:
Debra Dalgleish shows how to use =index(match()) for this:
http://www.contextures.com/xlFunctions03.html

I think that's what you need/want.

I could just behaving a very thick day but help would be very much
appreciated.

[quoted text clipped - 38 lines]
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200701/1



--
Message posted via http://www.officekb.com



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Help with Vlookup and if

Dave

Thanks very much it was just what I needed

petes_girl

Dave Peterson wrote:
Debra Dalgleish shows how to use =index(match()) for this:
http://www.contextures.com/xlFunctions03.html

I think that's what you need/want.

I could just behaving a very thick day but help would be very much
appreciated.

[quoted text clipped - 38 lines]
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200701/1



--
Message posted via http://www.officekb.com

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
VLOOKUP and its properties pepenacho Excel Worksheet Functions 1 August 22nd 06 10:52 PM
VLookup a Vlookup adamb2000 Excel Worksheet Functions 4 June 28th 06 10:54 PM
VLOOKUP Problem Ian Excel Discussion (Misc queries) 3 April 6th 06 06:47 PM
VLOOKUP Limitations chris_manning Excel Worksheet Functions 2 August 9th 05 06:23 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM


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