If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > help with conditional row sum based on string value

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-20-06, 15:37
z_art z_art is offline
Registered User
 
Join Date: Aug 2006
Posts: 8
help with conditional row sum based on string value

I have an Excel data file with columns similar to the following, where column A is text:

A B C D E F
visitor 4 3 1 2
member 2 4 1 6


I want to add up certain cells for the row of data based on the value in column A.
For example, if A="visitor" I want to sum columns B, E and F.
What would be the best way to accomplish this?
Reply With Quote
  #2 (permalink)  
Old 09-20-06, 19:49
Fazza Fazza is offline
Registered User
 
Join Date: Feb 2006
Posts: 113
"Best" way is hard to know. Neglecting the basic formula method, such as =B2+B7+B8+B15 (or whatever). Some ways - pivot table, SUMIF formula, auto subtotals (after sorting on column A), parameterised query table. Without know too much about your situation, a pivot table is likely to be very suitable.

HTH
Fazza
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On