Lounge of Tomorrow

€uromeinke, FEJ. and Ghoulish Delight RULE!!! NA abides.  


Go Back   Lounge of Tomorrow > A.S.C.O.T > Egg Head
Swank Swag
FAQ Members List Calendar Today's Posts Clear Unread

Reply
 
Thread Tools Search this Thread Display Modes
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
Old 09-22-2005, 09:32 AM   #2
Kevy Baby
Chowder Head
 
Kevy Baby's Avatar
 
Join Date: Jan 2005
Location: Yes
Posts: 18,500
Kevy Baby is the epitome of coolKevy Baby is the epitome of coolKevy Baby is the epitome of coolKevy Baby is the epitome of coolKevy Baby is the epitome of coolKevy Baby is the epitome of coolKevy Baby is the epitome of coolKevy Baby is the epitome of coolKevy Baby is the epitome of coolKevy Baby is the epitome of coolKevy Baby is the epitome of cool
Damn you GD. Now I am not going to be able to get any work done because I will be trying to think of the solution for this.

Hopefully somebody will save my day and post a solution soon.
__________________
The thing about quotes on the internet is that you cannot verify their validity.
- Abraham Lincoln
Kevy Baby is offline   Submit to Quotes Reply With Quote
Old 09-22-2005, 09:43 AM   #3
scaeagles
I LIKE!
 
scaeagles's Avatar
 
Join Date: Jan 2005
Posts: 7,819
scaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of cool
Ditto Kevy.
scaeagles is offline   Submit to Quotes Reply With Quote
Old 09-22-2005, 09:58 AM   #4
scaeagles
I LIKE!
 
scaeagles's Avatar
 
Join Date: Jan 2005
Posts: 7,819
scaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of cool
My solution, if possible.

I would add another column C. Column C has the following formula in each cell in the column -

=if (a1="yes",b1,"")

When copying the formula, of course the cell references change.

At the bottom of column C, a simple sum can be used for the range of data. This way, whenever the value of column A changes to or from yes, the data in column C is updated appropriately, and thus the total.

Of course, that only works if you can add column C.
scaeagles is offline   Submit to Quotes Reply With Quote
Old 09-22-2005, 09:58 AM   #5
Ponine
Virgin Ears
 
Ponine's Avatar
 
Join Date: Jan 2005
Location: San Diego
Posts: 2,075
Ponine is the epitome of coolPonine is the epitome of coolPonine is the epitome of coolPonine is the epitome of coolPonine is the epitome of coolPonine is the epitome of coolPonine is the epitome of coolPonine is the epitome of coolPonine is the epitome of coolPonine is the epitome of coolPonine is the epitome of cool
Send a message via AIM to Ponine Send a message via MSN to Ponine Send a message via Yahoo to Ponine
could you create a new column, even possbily hidden that would say
(If A=yes, then..)
and have it put the positive value in a new column, then add all the values in that column into a cell for your total?
__________________
There's something strange,
There's something wrong.
I see a change -
It's like when love dies.
Ponine is offline   Submit to Quotes Reply With Quote
Old 09-22-2005, 09:59 AM   #6
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
Yeah, I've thought of that solution. That'll be my fall back, but I'm still hoping for a more elegant solution that doesn't require the extra column
__________________
'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
Old 09-22-2005, 10:01 AM   #7
scaeagles
I LIKE!
 
scaeagles's Avatar
 
Join Date: Jan 2005
Posts: 7,819
scaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of cool
Well, you just want everything, don't you?
scaeagles is offline   Submit to Quotes Reply With Quote
Old 09-22-2005, 05:15 PM   #8
Moonliner
8/30/14 - Disneyland -10k or Bust.
 
Moonliner's Avatar
 
Join Date: Jan 2005
Posts: 9,022
Moonliner is the epitome of coolMoonliner is the epitome of coolMoonliner is the epitome of coolMoonliner is the epitome of coolMoonliner is the epitome of coolMoonliner is the epitome of coolMoonliner is the epitome of coolMoonliner is the epitome of coolMoonliner is the epitome of coolMoonliner is the epitome of coolMoonliner is the epitome of cool
Send a message via AIM to Moonliner Send a message via MSN to Moonliner Send a message via Yahoo to Moonliner
Hummmm....

If we have

A B
1 yes 1
2 null 5
3 yes 2
4 null 7

Then try:

=SUMPRODUCT((B1:B4)*(A1:A4="yes"))


How's that?

Note: I just added "null" to help the spacing.
__________________
- Taking it one step at a time.
Moonliner is offline   Submit to Quotes Reply With Quote
Old 09-22-2005, 11:11 PM   #9
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
Give the man a see-gar, it works!
__________________
'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
Old 09-23-2005, 06:52 AM   #10
scaeagles
I LIKE!
 
scaeagles's Avatar
 
Join Date: Jan 2005
Posts: 7,819
scaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of cool
I bow to your Excel-ence, Moonliner.
scaeagles is offline   Submit to Quotes Reply With Quote
Reply



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -7. The time now is 04:45 PM.


Lunarpages.com Web Hosting

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.