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 / February 2007

Tip: Looking for answers? Try searching our database.

using VLOOKUP to condense data on separate spreadsheet

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ORLFREIGHTBOY - 28 Feb 2007 15:33 GMT
Hello all-

I have two sheets, sheet1 and sheet2. I am condensing sheet1 (filled with
approx 5000 rows to sort through)

Sheet1:
branch     acct#    name   total
1         12345        misc    $100.00
2         12345        misc    $50.00
1         12367         oil      $100.00

Sheet2:
branch    acct#   name    total
1            12345    misc     ???

If I was doing an if/then setup on this, it would be IF branch=1 AND
acct#=12345 on Sheet1 THEN put the total from sheet1 into the
total cell for sheet2. What would be the best way to tackle this? I was
thinking starting =IF(VLOOKUP...What formula would I be placing in sheet2
total cell? Thanks In Advance - Jason
Teethless mama - 28 Feb 2007 15:51 GMT
=SUMPRODUCT(--(Sheet1!A2:A5000=Sheet2!A2),--(Sheet1!B2:B5000=Sheet2!B2)--(Sheet1!C2:C5000=Sheet2!C2),Sheet1!D2:D5000)

> Hello all-
>
[quoted text clipped - 16 lines]
> thinking starting =IF(VLOOKUP...What formula would I be placing in sheet2
> total cell? Thanks In Advance - Jason
ORLFREIGHTBOY - 28 Feb 2007 16:05 GMT
I'm actually not looking to add the columns together, I just want to carry
the number in the total column from sheet1 to sheet2...what do you think?  
Thanks, Jason

> Hello all-
>
[quoted text clipped - 16 lines]
> thinking starting =IF(VLOOKUP...What formula would I be placing in sheet2
> total cell? Thanks In Advance - Jason
Amy - 28 Feb 2007 18:29 GMT
I would temporarily create 2 sheets; sort one for branch 1 only and one for
branch 2 only. You will need to do this for both files.
Then I would use the VLOOKUP function on each sheet, using the account
number as the lookup value and return your totals--  for example:

File 1 Sheet1: my look up sheet
> > branch     acct#    name   total
> > 1         12345        misc    $100.00

and

File 2 Sheet 2: my return value sheet
Sheet2:
> > branch    acct#   name    total
> > 1            12345    misc     ???

Amy

> I'm actually not looking to add the columns together, I just want to carry
> the number in the total column from sheet1 to sheet2...what do you think?  
[quoted text clipped - 20 lines]
> > thinking starting =IF(VLOOKUP...What formula would I be placing in sheet2
> > total cell? Thanks In Advance - Jason
 
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.