?
Solved

Vlookup and sumif

Posted on 2011-09-15
8
Medium Priority
?
246 Views
Last Modified: 2012-05-12
I have two workbooks.
Workbook One is called Summary and is located at C:\Month. I have a tab labeled MS Aug. In MS Aug column A represents the account number. An example of an account number would be 4025RM28 (there are many more account numbers beginning with 4025.) In the same tab column G represents a balance in for each different 4025 account.
Workbook Two is called CD Spreadsheets. In CD Spreadsheets I have a tab labeled #20. In cell L5 I need to sum all the values from the Summary workbook, where the first four digits are “4025” from the Summary workbook from A3:A640 and place that sum in L5 in the tab labeled #20.
In other words, in the CD Spreadsheets at L5 go to the Summary workbook, tab MS Aug and add all the values in column G where the first four digits in column A = 4025 in the Summary workbook tab MS Aug.
0
Comment
Question by:Frank Freese
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
8 Comments
 
LVL 50

Expert Comment

by:barry houdini
ID: 36544893
Hello fh freese

Normally this can be done with SUMIF function and a wildcard but if the source workbook might be closed SUMIF won't work so SUMPRODUCT might be the best bet...try this formula in L5

=SUMPRODUCT(LEFT('[Summary.xls]MS Aug'!A$3:A$640,4)="4025")+0,'[Summary.xls]MS Aug'!G$3:G$640)

regards, barry
0
 

Author Comment

by:Frank Freese
ID: 36544957
barry,
got an error at G$640
0
 

Author Comment

by:Frank Freese
ID: 36545027
no error now? but no values, yet - off to the dentist but check out tonight
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:Frank Freese
ID: 36545041
sorry barry, still getting error
0
 
LVL 50

Accepted Solution

by:
barry houdini earned 2000 total points
ID: 36545159
Oh, apologies! I left out a parenthesis at the beginning - should be like this

=SUMPRODUCT((LEFT('[Summary.xls]MS Aug'!A$3:A$640,4)="4025")+0,'[Summary.xls]MS Aug'!G$3:G$640)

regards, barry
0
 
LVL 50

Assisted Solution

by:barry houdini
barry houdini earned 2000 total points
ID: 36545330
Note: I assume initially that you will have both workbooks open - then the above formula should work. If you then close the Summary workbook the formula will change automatically to show the whole path for Summary .....and the result will still display.

regards, barry
0
 

Author Comment

by:Frank Freese
ID: 36546619
I think I got it!
0
 

Author Closing Comment

by:Frank Freese
ID: 36546620
thank you!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question