View Single Post
Old 09-22-2005, 09:22 AM   #1
Ghoulish Delight
I Floop the Pig
 
Ghoulish Delight's Avatar
 
Join Date: Jan 2005
Location: Alternative Swankstyle
Posts: 19,348
Ghoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of cool
Send a message via AIM to Ghoulish Delight Send a message via Yahoo to Ghoulish Delight
Excel tips and tricks

I'm using Excel a lot at work. All of our test results are being put into some huge, complex matrices. I've got some questions on how to get some things done, plus I just accidentally found a nifty feature.

First, the nifty feature. If you're in a column that's got some data, and some blank spaces in between the data, holding ctrl and pressing the up or down arrow will bring you to the next cell in that column that has data in it. Great for fast scrolling to your data points. I presume it works for left and right in rows as well.

Now, for my quesiton. Let's say you have two columns. Column A will be either blank or say "yes" for each row. Column B has numerical data for each row. Here's what I want to accomplish. For each row, if Column A="yes", add the data in column B to a total. I can write it in code, but I can't wrap my brain around doing it in excel without a long formula like this: IF(A0="yes", B0,0)+IF(A1="yes", B1,0)+IF(A2="yes",B2,0)+...etc on down the rows. There's got to be a better solution.
__________________
'He who receives an idea from me, receives instruction himself without lessening mine; as he who lights his taper at mine, receives light without darkening me.'
-TJ

Ghoulish Delight is offline   Submit to Quotes Reply With Quote