Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
JPriest
 
Posts: n/a
Default Vlookup or If statement Help


Hi all,

I'm hoping you can help ease the work of my CTRL+COPY, CTRL+PASTE
fingers.

I have one worksheet that which I have to fill-in with data from the
web. I have copied and cleaned the data into 2 columns in a separate
worksheet. I would like to search worksheet #2, col B for data that
matches workbook#1, col b, and insert the correlating data from
worksheet#2 col A into workbook#1 col e.

Right now I'm coping and pasting these words into a search function on
the webpage and then coping the data from the webpage into the workbook
and my fingers are hurtin!

Thanks for your help in advance,
Jeff


--
JPriest
------------------------------------------------------------------------
JPriest's Profile: http://www.excelforum.com/member.php...o&userid=24695
View this thread: http://www.excelforum.com/showthread...hreadid=382636

  #2   Report Post  
MrShorty
 
Posts: n/a
Default


Not knowing all the specifics, it's a little difficult to be sure it
will work, but VLOOKUP should be able to do this for you.

1) Sheet#2 column C = column A
2) In sheet#1 column E =VLOOKUP(B1,sheet2!b1:c100,2,false)

Adapt references as necessary. Note that VLOOKUP can only return one
value. If the values in column B occur more than once in the lookup
table, you will always return the first incidence. Also I've set the
final argument to FALSE because I don't know if you can sort the lookup
table or if you otherwise will want to lookup using other than an exact
match.

Does that make sense or help at all?


--
MrShorty
------------------------------------------------------------------------
MrShorty's Profile: http://www.excelforum.com/member.php...o&userid=22181
View this thread: http://www.excelforum.com/showthread...hreadid=382636

  #3   Report Post  
JPriest
 
Posts: n/a
Default


Mr.Shorty,

It makes sense, however when I make the changes, I get a #REF!. Sheet
1, Col A contains a constant text and Sheet1 Col B contains the Code. I
am using Vlookup to search Sheet2 ColA for the constant from Sheet1 Col
A and extracting the correlating data from Sheet2 ColB into Sheet1
ColB.

Here is the formula I'm currently using:
=VLOOKUP(A1,Sheet2!A1:A100,2,FALSE)

As a side note, when I change the col Index from 2 to 1 I get the value
of Sheet2 Col A in Sheet1 Col B.

Hope you can help me out with this,
Jeff


--
JPriest
------------------------------------------------------------------------
JPriest's Profile: http://www.excelforum.com/member.php...o&userid=24695
View this thread: http://www.excelforum.com/showthread...hreadid=382636

  #4   Report Post  
greg7468
 
Posts: n/a
Default


Hi,
I think you need to change your range to A1:B100

HTH.


--
greg7468


------------------------------------------------------------------------
greg7468's Profile: http://www.excelforum.com/member.php...fo&userid=9031
View this thread: http://www.excelforum.com/showthread...hreadid=382636

  #5   Report Post  
JPriest
 
Posts: n/a
Default


Greg,
I made your suggested changes and now I get an #N/A error!

Any thoughts?

Jeff


--
JPriest
------------------------------------------------------------------------
JPriest's Profile: http://www.excelforum.com/member.php...o&userid=24695
View this thread: http://www.excelforum.com/showthread...hreadid=382636



  #6   Report Post  
MrShorty
 
Posts: n/a
Default


From Excel (2002) help If lookup_value is smaller than the smallest value in the first column
of table_array, VLOOKUP returns the #N/A error value.
If VLOOKUP can't find lookup_value, and range_lookup is FALSE, VLOOKUP
returns the #N/A value. Do either of these conditions apply?



--
MrShorty
------------------------------------------------------------------------
MrShorty's Profile: http://www.excelforum.com/member.php...o&userid=22181
View this thread: http://www.excelforum.com/showthread...hreadid=382636

  #7   Report Post  
JPriest
 
Posts: n/a
Default


When I select "Help on this error' and then 'step in', i get the message
that 'cell currently being evaluated contains a constant'.

What I'm trying to do is automate a web report after I get the
information from a web query. I want to automatically scan the web
query for a specific web link in one col and place the correlating hits
from the cell beside it into the report.

the formula i have been trying is the one above, but to no avail.

Please help!!

Jeff


--
JPriest
------------------------------------------------------------------------
JPriest's Profile: http://www.excelforum.com/member.php...o&userid=24695
View this thread: http://www.excelforum.com/showthread...hreadid=382636

  #8   Report Post  
NaturalLogZero
 
Posts: n/a
Default


3 1/2 minute demo on LOOKUP and avoiding some common problems in
returning state from zip code
http://www.kbdpower.com/Newsletter/public/lookup.html


JPriest Wrote:
Hi all,

I'm hoping you can help ease the work of my CTRL+COPY, CTRL+PASTE
fingers.

I have one worksheet that which I have to fill-in with data from the
web. I have copied and cleaned the data into 2 columns in a separate
worksheet. I would like to search worksheet #2, col B for data that
matches workbook#1, col b, and insert the correlating data from
worksheet#2 col A into workbook#1 col e.

Right now I'm coping and pasting these words into a search function on
the webpage and then coping the data from the webpage into the workbook
and my fingers are hurtin!

Thanks for your help in advance,
Jeff



--
NaturalLogZero
------------------------------------------------------------------------
NaturalLogZero's Profile: http://www.excelforum.com/member.php...o&userid=24724
View this thread: http://www.excelforum.com/showthread...hreadid=382636

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
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM
Vlookup of an if statement return James Excel Worksheet Functions 2 April 6th 05 10:28 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM
If/And statement; VLOOKUP? o1darcie1o Excel Worksheet Functions 5 December 29th 04 05:22 PM
Extension of and IF & VLOOKUP statement Sal Excel Worksheet Functions 1 December 20th 04 04:19 AM


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