Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default vlookup and sum of multiple lines

I am importing productivity data from our pos system into worksheet A and
trying to use it to sum up some totals per employee and put it in worksheet B
to calculate commission. I would like to do a lookup for the employee and
then add up his totals for(in this example) air filters and Breathers. So the
lookup should return 25.98 for DUMA,ABE or 21.98 for DAVIS,AL. Is this
possible with lookups and sums?

column A column B
Employee: DUMA,ABE

Average Time Per Car

Item
==================
TOTAL INVOICES 7
CUSTOMER VISITS:
******************
LUBE ONLY:
******************
AIR FILTERS: 14.99
BREATHER FILTERS: 10.99

Employee: DAVIS,AL

Average Time Per Car

Item
==================
TOTAL INVOICES 12
CUSTOMER VISITS:
******************
LUBE ONLY:
******************
AIR FILTERS: 7.99
BREATHER FILTERS: 13.99


--
Thanks

Roch
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 252
Default vlookup and sum of multiple lines

When you want to Analize data in Excel you need to arrange it in a Database
or Table format first, with headings like EmplName Date TotalInvoices
CustmVisits ItemSold Amt

Then each row is a transaction record. Once the data is arranged like this
you can easily use DataFilterAutofilter to get information about any
employee/date/Sales etc and apply commissions to the data or subtotals. The
Subtotal function, in fact, has several forms that perform many types of
anal on filtered data of this kind.

"Rock" wrote:

I am importing productivity data from our pos system into worksheet A and
trying to use it to sum up some totals per employee and put it in worksheet B
to calculate commission. I would like to do a lookup for the employee and
then add up his totals for(in this example) air filters and Breathers. So the
lookup should return 25.98 for DUMA,ABE or 21.98 for DAVIS,AL. Is this
possible with lookups and sums?

column A column B
Employee: DUMA,ABE

Average Time Per Car

Item
==================
TOTAL INVOICES 7
CUSTOMER VISITS:
******************
LUBE ONLY:
******************
AIR FILTERS: 14.99
BREATHER FILTERS: 10.99

Employee: DAVIS,AL

Average Time Per Car

Item
==================
TOTAL INVOICES 12
CUSTOMER VISITS:
******************
LUBE ONLY:
******************
AIR FILTERS: 7.99
BREATHER FILTERS: 13.99


--
Thanks

Roch

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default vlookup and sum of multiple lines

If I arrange my data as you say

A B
Paul 114
george 80
Paul 20

How would I get all the Paul to add up with a VLOOKUP, something like this
=VLOOKUP(O12, B1:G3000,SUBTOTAL(9,G1:G3000),FALSE)

I know this one doesn't work but am i going in the right direction

Thanks


"gocush" wrote:

When you want to Analize data in Excel you need to arrange it in a Database
or Table format first, with headings like EmplName Date TotalInvoices
CustmVisits ItemSold Amt

Then each row is a transaction record. Once the data is arranged like this
you can easily use DataFilterAutofilter to get information about any
employee/date/Sales etc and apply commissions to the data or subtotals. The
Subtotal function, in fact, has several forms that perform many types of
anal on filtered data of this kind.

"Rock" wrote:

I am importing productivity data from our pos system into worksheet A and
trying to use it to sum up some totals per employee and put it in worksheet B
to calculate commission. I would like to do a lookup for the employee and
then add up his totals for(in this example) air filters and Breathers. So the
lookup should return 25.98 for DUMA,ABE or 21.98 for DAVIS,AL. Is this
possible with lookups and sums?

column A column B
Employee: DUMA,ABE

Average Time Per Car

Item
==================
TOTAL INVOICES 7
CUSTOMER VISITS:
******************
LUBE ONLY:
******************
AIR FILTERS: 14.99
BREATHER FILTERS: 10.99

Employee: DAVIS,AL

Average Time Per Car

Item
==================
TOTAL INVOICES 12
CUSTOMER VISITS:
******************
LUBE ONLY:
******************
AIR FILTERS: 7.99
BREATHER FILTERS: 13.99


--
Thanks

Roch

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 252
Default vlookup and sum of multiple lines

Arrange your data as you have shown, EXCEPT: insert headers in ROW 1: Name
and Amt.
Then at the bottom of col B, say B10, enter:
=SUBTOTAL(9,B2:B7)

then click on one of the data cells, say A4, then DataFilterAutoFilter
Use the drop-down arrow to select one of the Names.

The subtotal formula above will adjust to find the subtotal for the name you
choose.

"Rock" wrote:

If I arrange my data as you say

A B
Paul 114
george 80
Paul 20

How would I get all the Paul to add up with a VLOOKUP, something like this
=VLOOKUP(O12, B1:G3000,SUBTOTAL(9,G1:G3000),FALSE)

I know this one doesn't work but am i going in the right direction

Thanks


"gocush" wrote:

When you want to Analize data in Excel you need to arrange it in a Database
or Table format first, with headings like EmplName Date TotalInvoices
CustmVisits ItemSold Amt

Then each row is a transaction record. Once the data is arranged like this
you can easily use DataFilterAutofilter to get information about any
employee/date/Sales etc and apply commissions to the data or subtotals. The
Subtotal function, in fact, has several forms that perform many types of
anal on filtered data of this kind.

"Rock" wrote:

I am importing productivity data from our pos system into worksheet A and
trying to use it to sum up some totals per employee and put it in worksheet B
to calculate commission. I would like to do a lookup for the employee and
then add up his totals for(in this example) air filters and Breathers. So the
lookup should return 25.98 for DUMA,ABE or 21.98 for DAVIS,AL. Is this
possible with lookups and sums?

column A column B
Employee: DUMA,ABE

Average Time Per Car

Item
==================
TOTAL INVOICES 7
CUSTOMER VISITS:
******************
LUBE ONLY:
******************
AIR FILTERS: 14.99
BREATHER FILTERS: 10.99

Employee: DAVIS,AL

Average Time Per Car

Item
==================
TOTAL INVOICES 12
CUSTOMER VISITS:
******************
LUBE ONLY:
******************
AIR FILTERS: 7.99
BREATHER FILTERS: 13.99


--
Thanks

Roch

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 783
Default vlookup and sum of multiple lines

If the functions in the file at http://home.pacbell.net/beban are
available to your workbook

=SUM(VLOOKUPS("Paul",A1:B3,2))

Alan Beban

Rock wrote:
If I arrange my data as you say

A B
Paul 114
george 80
Paul 20

How would I get all the Paul to add up with a VLOOKUP, something like this
=VLOOKUP(O12, B1:G3000,SUBTOTAL(9,G1:G3000),FALSE)

I know this one doesn't work but am i going in the right direction

Thanks


"gocush" wrote:


When you want to Analize data in Excel you need to arrange it in a Database
or Table format first, with headings like EmplName Date TotalInvoices
CustmVisits ItemSold Amt

Then each row is a transaction record. Once the data is arranged like this
you can easily use DataFilterAutofilter to get information about any
employee/date/Sales etc and apply commissions to the data or subtotals. The
Subtotal function, in fact, has several forms that perform many types of
anal on filtered data of this kind.

"Rock" wrote:


I am importing productivity data from our pos system into worksheet A and
trying to use it to sum up some totals per employee and put it in worksheet B
to calculate commission. I would like to do a lookup for the employee and
then add up his totals for(in this example) air filters and Breathers. So the
lookup should return 25.98 for DUMA,ABE or 21.98 for DAVIS,AL. Is this
possible with lookups and sums?

column A column B
Employee: DUMA,ABE

Average Time Per Car

Item
==================
TOTAL INVOICES 7
CUSTOMER VISITS:
******************
LUBE ONLY:
******************
AIR FILTERS: 14.99
BREATHER FILTERS: 10.99

Employee: DAVIS,AL

Average Time Per Car

Item
==================
TOTAL INVOICES 12
CUSTOMER VISITS:
******************
LUBE ONLY:
******************
AIR FILTERS: 7.99
BREATHER FILTERS: 13.99


--
Thanks

Roch

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
In Excel 2007 chart with multiple lines, mouse doesn't track lines sfuelling Charts and Charting in Excel 1 August 19th 09 09:41 PM
display 1 line of multiple worksheets into multiple lines on 1 wks Golf Nut Excel Worksheet Functions 1 October 5th 06 08:28 AM
Display multiple lines of text within a cell from multiple column. Zeeshan Zaheer Excel Worksheet Functions 3 August 23rd 06 10:08 AM
vlookup with multiple lines of same value lostinexcel Excel Worksheet Functions 1 December 17th 04 02:06 PM
Multiple blank lines, between multiple lines Wishmaster Excel Programming 1 October 22nd 04 06:05 PM


All times are GMT +1. The time now is 11:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"