Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / March 2007

Tip: Looking for answers? Try searching our database.

Match values

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
plunk25 - 08 Mar 2007 00:31 GMT
I have 2 worksheets that are setup as follows:

wksht1:
column a = customer number
column b = customer name
column c = sales ytd

wksht2:
column a = customer number

What I need to do is pull the sales ytd from wksht1 and place it in wksheet
2 only if the customer number from wksht2 has a match in column a in wksht1.

I've tried a vlookup, but it doesn't quite do what I need it to. Can anyone
point me in the right direction?
Martin Fishlock - 08 Mar 2007 01:06 GMT
hi plunk:

the vlookup returns n/a on no match right?

so you can do the following:

=if(isna(vlookup(a2, wksht1!a:c, 3 false)),"",vlookup(a2, wksht1!a:c, 3
false))

or sum the sumif formula

=sumif(wksht1!a:a, a2,wksht1!c:c)

assuming the item is on row 2
Signature

Hope this helps
Martin Fishlock, Bangkok, Thailand
Please do not forget to rate this reply.

> I have 2 worksheets that are setup as follows:
>
[quoted text clipped - 11 lines]
> I've tried a vlookup, but it doesn't quite do what I need it to. Can anyone
> point me in the right direction?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.