Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Microsoft Support > Microsoft Office support
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Microsoft Office support MS Office support forum

Reply
 
LinkBack Thread Tools
Old 09-17-2007, 06:45 AM   #1 (permalink)
Registered User
 
Join Date: Jul 2004
Location: States
Posts: 207
OS: Win XP Pro SP 2

My System

Send a message via AIM to silverwolf82587
Vlookup/if

Hello,

This what I'm doing.

VLOOKUP(lookup_value,table_array,col_index_num,range_lookup)

Or

=VLOOKUP(Sequioa!A:A,MBS!A:A,1,FALSE)


There are 3 worksheets:

1. Sequoia
2. MBS
3. Result

I am trying to compare sequoia worksheet’s values to that of MBS, if it exists in both I want it to print that value or entire in the result worksheet.
Also I need to do this for each value (each row), create a loop somehow.


Thank you,

Your help is greatly appreciated.

Wes

Your help is greatly appreciated.

Wes
silverwolf82587 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 09-17-2007, 11:23 AM   #2 (permalink)
Folding Along
 
gistek's Avatar
 
Join Date: May 2007
Location: PA, USA
Posts: 1,912
OS: Bobbi=xp, sp3 Muse=Vista Home Premium


Send a message via AIM to gistek Send a message via Skype™ to gistek
Re: Vlookup/if

=VLOOKUP(Sequoia!A1,MBS!A:A,1,FALSE)

Will show the values for items in Sequoia and also in MBS with an #N/A for items in Sequoia and not MBS.

=VLOOKUP(MBS!A1,Sequoia!A:A,1,FALSE)

Will show the values for items in MBS and also in Sequoia with an "N/A for items in MSB and not in Sequoia.
__________________
I am not a computer professional, My advice comes from personal experience and/or friends who are computer professionals. Learn By Doing Un-versity
Interested in Search and Rescue? Check out the Civil Air Patrol.
Come Fold with us. TSF Folding@Home Team
gistek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-21-2007, 12:06 PM   #3 (permalink)
Registered User
 
Join Date: Jul 2004
Location: States
Posts: 207
OS: Win XP Pro SP 2

My System

Send a message via AIM to silverwolf82587
Re: Vlookup/if

Sorry for my ignorance. Do they make a where command?

I just need it to spit out the entry on the third worksheet, if the entry exists in both the first two worksheets.

Thanks again.
silverwolf82587 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-24-2007, 08:59 PM   #4 (permalink)
Folding Along
 
gistek's Avatar
 
Join Date: May 2007
Location: PA, USA
Posts: 1,912
OS: Bobbi=xp, sp3 Muse=Vista Home Premium


Send a message via AIM to gistek Send a message via Skype™ to gistek
Re: Vlookup/if

If the data are numeric, and positive, you can use
=IF(VLOOKUP(Sequoia!A1,MBS!A:A,1,FALSE)>0,Sequoia!A1," ")

This should give you the value for the matching entries without the "N/A" where the entries don't match.

If I get a chance I'll experiment with this and see if I can find a better solution.

You might end up needing a macro, though and I haven't done much macro work yet.
__________________
I am not a computer professional, My advice comes from personal experience and/or friends who are computer professionals. Learn By Doing Un-versity
Interested in Search and Rescue? Check out the Civil Air Patrol.
Come Fold with us. TSF Folding@Home Team
gistek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-02-2007, 10:12 AM   #5 (permalink)
Registered User
 
Join Date: Jul 2004
Location: States
Posts: 207
OS: Win XP Pro SP 2

My System

Send a message via AIM to silverwolf82587
Re: Vlookup/if

=VLOOKUP(Sequioa!A1,MBS!A:A,1,FALSE)
In english to me this means compare sequioa A1's value to that of mbs's entire a column, if there is an exact match found spit out that value on result worksheet, if not, spit out N/A.

Is this correct? I click and drag the formula down to other cells and it basically does what i wanted. certain cells spit out data others say n/a.

thanks again.
silverwolf82587 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-02-2007, 02:03 PM   #6 (permalink)
Folding Along
 
gistek's Avatar
 
Join Date: May 2007
Location: PA, USA
Posts: 1,912
OS: Bobbi=xp, sp3 Muse=Vista Home Premium


Send a message via AIM to gistek Send a message via Skype™ to gistek
Re: Vlookup/if

Yep. That's what it does.
__________________
I am not a computer professional, My advice comes from personal experience and/or friends who are computer professionals. Learn By Doing Un-versity
Interested in Search and Rescue? Check out the Civil Air Patrol.
Come Fold with us. TSF Folding@Home Team
gistek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-05-2007, 06:20 AM   #7 (permalink)
Registered User
 
Join Date: Jul 2004
Location: States
Posts: 207
OS: Win XP Pro SP 2

My System

Send a message via AIM to silverwolf82587
Re: Vlookup/if

hey is there a way to take the result with all of the numeric values and put them on another worksheet in the same column in different rows. that way i have several hundred rows rather than 20000.


thanks again.
silverwolf82587 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-05-2007, 10:07 AM   #8 (permalink)
Folding Along
 
gistek's Avatar
 
Join Date: May 2007
Location: PA, USA
Posts: 1,912
OS: Bobbi=xp, sp3 Muse=Vista Home Premium


Send a message via AIM to gistek Send a message via Skype™ to gistek
Re: Vlookup/if

You might want to look into migrating to Access for data sets that large.You can still use your Excel spreadsheets as base tables by linking them into Access, but you would do your comparisons and generate a results table with only the results (none of those N/A's in it). This could then be output to Excel if you need the results there.
__________________
I am not a computer professional, My advice comes from personal experience and/or friends who are computer professionals. Learn By Doing Un-versity
Interested in Search and Rescue? Check out the Civil Air Patrol.
Come Fold with us. TSF Folding@Home Team
gistek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 08:10 AM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85