Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Which function is best?

Hi
I want to capture 4 different categories that are in one column & a cost
associated to it in another column. There are numerous line items but all
identified by the category. I want to total each category based on the
dollar volume.

Which function is best to do this?
IF or VLOOKUP??

Any and all suggestions are greatly appreciated!!
Cheers,
T
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 95
Default Which function is best?

In my opinion, VLOOKUP is usually simpler to define and maintain. If you
also use named ranges, it also reads easily.
In any case, both are more intended for a cell by cell basis. If you want
to compute total try SUMPRODUCT with logical validations.

Hope this helps,
Miguel.

"CAPGirl" wrote:

Hi
I want to capture 4 different categories that are in one column & a cost
associated to it in another column. There are numerous line items but all
identified by the category. I want to total each category based on the
dollar volume.

Which function is best to do this?
IF or VLOOKUP??

Any and all suggestions are greatly appreciated!!
Cheers,
T

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 82
Default Which function is best?

If there are multiple occurances of the categories you are summarizing then
VLOOKUP() will not work since it will only return a match for the first row
it finds, not a sum of the values.

I think the SUMIF() function will probably work best if I understand your
post correctly.

HTH,

TK

"CAPGirl" wrote:

Hi
I want to capture 4 different categories that are in one column & a cost
associated to it in another column. There are numerous line items but all
identified by the category. I want to total each category based on the
dollar volume.

Which function is best to do this?
IF or VLOOKUP??

Any and all suggestions are greatly appreciated!!
Cheers,
T

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 341
Default Which function is best?

sheet 1:
Col A Col B
apples 15
pears 16
apples 22
bananas 12
pears 2
bananas 23

sheet2:
Col A Col B
apples =SUMIF(sheet1!A:A,A1,sheet1!B:B)
pears =SUMIF(sheet1!A:A,B1,sheet1!B:B)

- OR -

1) sort by category
2) use data subtotals. At each change in category, use function SUM on
column dollars.
--
Allllen


"CAPGirl" wrote:

Hi
I want to capture 4 different categories that are in one column & a cost
associated to it in another column. There are numerous line items but all
identified by the category. I want to total each category based on the
dollar volume.

Which function is best to do this?
IF or VLOOKUP??

Any and all suggestions are greatly appreciated!!
Cheers,
T

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
Need some comments on my Utility_Move class module. jchen Excel Worksheet Functions 0 August 21st 06 07:05 PM
Creating a Custom Excel Function to Calculate Gini Coefficients [email protected] Excel Worksheet Functions 3 February 21st 06 10:15 PM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM


All times are GMT +1. The time now is 06:44 AM.

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"