aquarium advice logo

Go Back   Aquarium Advice - Aquarium Forum Community > Community Forum > The Lounge
Portal Register Forums Vendors Gallery Articles Reviews FAQ Members List Search Today's Posts Mark Forums Read Chat Room


Reply
 
Thread Tools Search this Thread Display Modes
Old 10-04-2008, 10:52 AM   #1
ccCapt
SW 10 & Over
Community Moderator
 
ccCapt's Avatar
 
Join Date: Mar 2004
Location: Northeast PA
Posts: 2,773
Images: 3
ccCapt finds happiness in magic reefsccCapt finds happiness in magic reefsccCapt finds happiness in magic reefsccCapt finds happiness in magic reefsccCapt finds happiness in magic reefsccCapt finds happiness in magic reefsccCapt finds happiness in magic reefsccCapt finds happiness in magic reefsccCapt finds happiness in magic reefsccCapt finds happiness in magic reefsccCapt finds happiness in magic reefs
Send a message via ICQ to ccCapt
Any MS Excel users?

I think the answer is easier than I'm making it out to be...lol. But I can't get it right anyway.
Say I have 10 columns, A1 to J1.
K1 is the sum of A1 to J1
L1 is a set number imported from another database.
M1 is the difference between K1 and L1.
If the value of M1 is a negative number, how do I shade row A1 to M1?

dohhhhh...lol nevermind
just had to get the conditional format right
__________________
125g reef
See My Tank Info
Check out The build project
/Larry - Secretary, North Central PA Aquarium Reef Society

Last edited by ccCapt; 10-04-2008 at 11:31 AM.. Reason: found the answer
ccCapt is online now   Reply With Quote
Old 10-04-2008, 01:06 PM   #2
neilanh
MTS Advocate
Community Moderator
 
neilanh's Avatar
 
Join Date: Dec 2006
Location: Northern Virginia
Posts: 5,284
Images: 15
neilanh no longer has any furniture, since it has all been replaced by aquariumsneilanh no longer has any furniture, since it has all been replaced by aquariumsneilanh no longer has any furniture, since it has all been replaced by aquariumsneilanh no longer has any furniture, since it has all been replaced by aquariumsneilanh no longer has any furniture, since it has all been replaced by aquariumsneilanh no longer has any furniture, since it has all been replaced by aquariumsneilanh no longer has any furniture, since it has all been replaced by aquariumsneilanh no longer has any furniture, since it has all been replaced by aquariumsneilanh no longer has any furniture, since it has all been replaced by aquariumsneilanh no longer has any furniture, since it has all been replaced by aquariumsneilanh no longer has any furniture, since it has all been replaced by aquariums
good job
__________________
~Neilan
In the DC Metro Area? Check out GWAPA and WAMAS
Look, I have a My Info Page! Where's yours?
Useful Links: Vote for AA, Nitrogen Cycle, Fishless Cycling, Articles, Acronym List
neilanh is offline   Reply With Quote
Old 10-05-2008, 12:56 AM   #3
Kurt_Nelson
Aquarium Advice Addict
 
Join Date: Aug 2006
Location: WA
Posts: 3,957
Images: 28
Kurt_Nelson no longer has any furniture, since it has all been replaced by aquariumsKurt_Nelson no longer has any furniture, since it has all been replaced by aquariumsKurt_Nelson no longer has any furniture, since it has all been replaced by aquariumsKurt_Nelson no longer has any furniture, since it has all been replaced by aquariumsKurt_Nelson no longer has any furniture, since it has all been replaced by aquariumsKurt_Nelson no longer has any furniture, since it has all been replaced by aquariumsKurt_Nelson no longer has any furniture, since it has all been replaced by aquariumsKurt_Nelson no longer has any furniture, since it has all been replaced by aquariumsKurt_Nelson no longer has any furniture, since it has all been replaced by aquariumsKurt_Nelson no longer has any furniture, since it has all been replaced by aquariumsKurt_Nelson no longer has any furniture, since it has all been replaced by aquariums
Glad we could help!

(Don't you hate it when you go and ask someone a question, and the very second it leaves your lips you realize the answer... no matter how long you thought about it before your asked the question out loud?! Go figure.)
Kurt_Nelson is offline   Reply With Quote
Old 10-05-2008, 10:22 AM   #4
ccCapt
SW 10 & Over
Community Moderator
 
ccCapt's Avatar
 
Join Date: Mar 2004
Location: Northeast PA
Posts: 2,773
Images: 3
ccCapt finds happiness in magic reefsccCapt finds happiness in magic reefsccCapt finds happiness in magic reefsccCapt finds happiness in magic reefsccCapt finds happiness in magic reefsccCapt finds happiness in magic reefsccCapt finds happiness in magic reefsccCapt finds happiness in magic reefsccCapt finds happiness in magic reefsccCapt finds happiness in magic reefsccCapt finds happiness in magic reefs
Send a message via ICQ to ccCapt
No kidding Kurt...lol. I worked on that stupid formula like an hr before I posted...then 15 mins later I figure it out.
__________________
125g reef
See My Tank Info
Check out The build project
/Larry - Secretary, North Central PA Aquarium Reef Society
ccCapt is online now   Reply With Quote
Old 10-09-2008, 07:35 PM   #5
OldMan
Aquarium Advice Activist
 
OldMan's Avatar
 
Join Date: Oct 2008
Location: Central Illinois
Posts: 126
OldMan has started an aquariumOldMan has started an aquarium
Another option is to go to the file options and set up a format for negative numbers in the file. That way you don't need to conditional format the individual cell.
OldMan is offline   Reply With Quote
Old 10-09-2008, 08:59 PM   #6
ccCapt
SW 10 & Over
Community Moderator
 
ccCapt's Avatar
 
Join Date: Mar 2004
Location: Northeast PA
Posts: 2,773
Images: 3
ccCapt finds happiness in magic reefsccCapt finds happiness in magic reefsccCapt finds happiness in magic reefsccCapt finds happiness in magic reefsccCapt finds happiness in magic reefsccCapt finds happiness in magic reefsccCapt finds happiness in magic reefsccCapt finds happiness in magic reefsccCapt finds happiness in magic reefsccCapt finds happiness in magic reefsccCapt finds happiness in magic reefs
Send a message via ICQ to ccCapt
Actually what I did was highlighted the entire row and did the conditional format. How I set the condition was: Formula is and =$M1<0 then I picked what I wanted it too look like.

But....hehehe.
Maybe you, or someone else can suggest something here.

We know K1 is the sum of A1 to J1 and that M1 can be a positive or negative number.
If M1 is negative, following the conditions above, the entire row will change.
Let say A1 to J1 are all 10, so K1 is 100. If M1 is -60, instead of changing the entire row, how can I set it so it will add, from right to left until it reaches -60. So in other words, only cells K1 to E1 change. E1 being the cell where to total hits -60. Or if it's -20, only K1 to H1 change.

Is that confusing enough?
__________________
125g reef
See My Tank Info
Check out The build project
/Larry - Secretary, North Central PA Aquarium Reef Society
ccCapt is online now   Reply With Quote
Old 10-09-2008, 09:59 PM   #7
OldMan
Aquarium Advice Activist
 
OldMan's Avatar
 
Join Date: Oct 2008
Location: Central Illinois
Posts: 126
OldMan has started an aquariumOldMan has started an aquarium
You could set up cells that do not normally show, maybe in hidden columns, that measure the subtotals and then use your conditional formatting with the invisible columns as the condtion. For example if AL1 was the sum of A1 and B1, then you could format B1 based on the subtotal stored in AL1. The format of C1 would be based on the subtotal stored in AM1 which would contain the sum of A1 through C1, etc. Be sure you use sums rather than + signs in your formula so that null cells, the ones with no numbers in them, won't throw off the calculation and give you error messages. By the way AL1 is way off the screen to the right if you have a reasonable number of columns on your screen.
Is this confusing enough?
OldMan is offline   Reply With Quote
Old 10-10-2008, 01:04 AM   #8
ccCapt
SW 10 & Over
Community Moderator
 
ccCapt's Avatar
 
Join Date: Mar 2004
Location: Northeast PA
Posts: 2,773
Images: 3
ccCapt finds happiness in magic reefsccCapt finds happiness in magic reefsccCapt finds happiness in magic reefsccCapt finds happiness in magic reefsccCapt finds happiness in magic reefsccCapt finds happiness in magic reefsccCapt finds happiness in magic reefsccCapt finds happiness in magic reefsccCapt finds happiness in magic reefsccCapt finds happiness in magic reefsccCapt finds happiness in magic reefs
Send a message via ICQ to ccCapt
I follow what you are saying and that would probably work, but I'm thinking in a different direction...and maybe it's the wrong way lol.
But I think it can be done using IF and AND IF in the fornula...somehow. Like the condition would be met IF SUM(J1:A1)<M1 AND IF SUM(J1:B1)<M1 etc. Going this route tho seems more like vb, and I don't know vb good enough or even Excel good enough to figure how to get it working.
Dunno..maybe it can be done that way, maybe not. Seems to be getting too complicated tho for a spare time project...lol
__________________
125g reef
See My Tank Info
Check out The build project
/Larry - Secretary, North Central PA Aquarium Reef Society
ccCapt is online now   Reply With Quote
Old 10-10-2008, 08:51 AM   #9
OldMan
Aquarium Advice Activist
 
OldMan's Avatar
 
Join Date: Oct 2008
Location: Central Illinois
Posts: 126
OldMan has started an aquariumOldMan has started an aquarium
I think you have a valid approach but I am also not that well versed in VB. It is why I look for the slightly more indirect method that I can understand. Sometimes 2 steps are easier than 1 in Excel or Access query programming. I write Access extensively to support people at work and find that if I break it down so I can examine it later, it makes adjusting and adapting to new uses much easier. Lets's face it, you can never remember every detail of how you built something for another user so it's best to leave a trail unless you are a programmer for a living. In that case you could leave your trail in your personal developer's notebook instead.
OldMan is offline   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 Off
Pingbacks are Off
Refbacks are Off

Forum Jump




» Recent Discussions From The Forums
Powered by vBadvanced CMPS v3.0.1
All times are GMT -4. The time now is 02:09 PM.



Other Social Knowledge forum communities:
Cooking Forum - Sailing Forum - Early Retirement - Airstream Trailer - Aquarium Forum - Royal Forum - Book Forum - Volkswagen Touareg Forum - Jeep Wrangler Forum - Whitewater Kayaking & Rafting Forum - Fiberglass RV Forum - RV Forum - Truck Conversion - U2 Music Forum
Social Knowledge Networks
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0
Vendor Tools vBulletin Plugins by Drive Thru Online, Inc.
Forums Directory