#1   Report Post  
jg
 
Posts: n/a
Default vlookup

I would like to do the following calculation which I think should be done
with the vlookup function, but it may be another function.

I have a table containing 3 columns. Column A list the category (Clothing,
food etc.). Column B lists the item within the category (from Column A).
Column C lists the price of the item in column B. I would like to list on a
new table (on a different worksheet) all the categories (from the 1st table
in column A) on column A of the new table. I would like to have a formula in
column B of the new table totaling the price of all the items (from the 1st
table, column B) belonging to the category listed on column A of this row (in
the new table).
--

jg
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

Sounds as though you could use

=SUMIF(Sheet1!$A$2:$A$500,A2,Sheet1!$C$2:$C$500)

or

=SUMPRODUCT(--(Sheet1!$A$2:$A$500=A2),Sheet1!$C$2:$C$500)

where A2 is the first category, copy down the formula

You could also use a pivot table


Regards,

Peo Sjoblom

"jg" wrote:

I would like to do the following calculation which I think should be done
with the vlookup function, but it may be another function.

I have a table containing 3 columns. Column A list the category (Clothing,
food etc.). Column B lists the item within the category (from Column A).
Column C lists the price of the item in column B. I would like to list on a
new table (on a different worksheet) all the categories (from the 1st table
in column A) on column A of the new table. I would like to have a formula in
column B of the new table totaling the price of all the items (from the 1st
table, column B) belonging to the category listed on column A of this row (in
the new table).
--

jg

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
Array Function with VLOOKUP CoRrRan Excel Worksheet Functions 15 April 8th 05 05:54 PM
make a vlookup using a variable path Alex St-Pierre Excel Worksheet Functions 1 March 3rd 05 12:54 AM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 01:09 PM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 11:43 AM
VLOOKUP not working Scott Excel Worksheet Functions 3 November 12th 04 09:06 PM


All times are GMT +1. The time now is 05:12 PM.

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

About Us

"It's about Microsoft Excel"