Tilted Forum Project Discussion Community  

Go Back   Tilted Forum Project Discussion Community > Interests > Tilted Technology


 
 
LinkBack Thread Tools
Old 02-20-2005, 02:22 PM   #1 (permalink)
Tilted
 
jusolson00's Avatar
 
Excel help

Hi everybody, I'm not sure where to post this, so i thought i'd give this a try. I'm having a frustrating time trying to figure this out and I've come up with nothing, so i hope you guys can help. I've been putting together a small data base for my small business and I have set up a spreadsheet with a bunch of values that coorespond to diffent things. The problem is that I've got formulas set up for most of the cells, and while they work great, there is one drawback., the data is entered for years, and are forcasted into the future, so when my formulas forcast into the future, some return with a negative value. I do not want this. I want to be able to tell Excel that when the cell value reaches zero, to keep it at zero and not give me a negative number. I hope i explained this enough. Thanks for any help.

Justin.
jusolson00 is offline  
Old 02-20-2005, 03:59 PM   #2 (permalink)
Adequate
 
cyrnel's Avatar
 
Location: In my angry-dome.
This may be too simple but have you tried an if statement?

if(conditional;then;else)

i.e:
=if(a1>0;a1;0)
cyrnel is offline  
Old 02-20-2005, 05:09 PM   #3 (permalink)
Insane
 
LewisCouch's Avatar
 
Location: Pacific NW
You haven't provided an example so it is difficult to answer your question, however; here is a site (http://www.meadinkent.co.uk/datesandtimes.htm) that is a pretty decent reference for Excel functions. Utilizing Excel as a database has it's drawbacks as it is really a spreadsheet tool. A rudimentary database can be created though, and hopefully, the date/time functions you will find in the above link will help you.
__________________
"The gift of liberty is like that of a horse, handsome, strong, and high-spirited. In some it arouses a wish to ride; in many others, on the contrary, it increases the desire to walk."

-- Massimo d'Azeglio
LewisCouch is offline  
Old 02-20-2005, 06:04 PM   #4 (permalink)
Tilted
 
jusolson00's Avatar
 
I guess I did try the If function, but found it non helpfull, or i wasnt doing it right. I'll try to give ya an example. the entries i'm interested in are my depreciation list for my business assets., I have it set up so that it calculates the values into the future. well on some assets it uses up the depr. and gives me a zero amount, which i want, and i want to stop there, but then it goes to negative numbers. I suppose i could just edit those functions on those assets so they stop at that point, but i was wondering if there was a condition i could apply to all cells for all the assets to prevent them from calculating a zero amount.

If the "if" function will do this... is it easy to do? I cant seem to get it to work. I guess i dont understand the terminology of sorts. also, the cells that i want to go to zero already have formulas assigned to them, can i still use the "if" function?

okay, well i've played around with the "if" function some more, and it seem to tell me something about circular referance?? also, i can get it to add numbers the cell with the if function, because its adding the "if" function to the orginal function of the cell. I hope i'm explaining this right, thanks again.
Thanks for the help.

Last edited by jusolson00; 02-20-2005 at 06:18 PM.. Reason: found additional info
jusolson00 is offline  
Old 02-20-2005, 06:24 PM   #5 (permalink)
Adequate
 
cyrnel's Avatar
 
Location: In my angry-dome.
This still may be too simple an answer.

Say you have a cell that's computed:

=sum(a1:b4)

Now you want it to only display computed values greater than zero:

=if(sum(a1:b4) > 0;sum(a1:b4);0)
Replace the final zero with "" to display a blank cell instead of zero.

There are other methods but that's the classic double calculation used since Visicalc.
cyrnel is offline  
Old 02-21-2005, 05:24 AM   #6 (permalink)
Desert Rat
 
spived2's Avatar
 
Location: Arizona
So basically, If there are formulas in the entries where you do not want the value to go below 0, take the formula you already had, and add it into cyrnel's above formula at the (a1:b4) locations and replace whats in the parenthesis with your formula. You won't lose your numbers, it just kinda filters them so if the values do go below 0, it just shows 0.
__________________

"This visage, no mere veneer of vanity, is it vestige of the vox populi, now vacant, vanished, as the once vital voice of the verisimilitude now venerates what they once vilified. However, this valorous visitation of a by-gone vexation, stands vivified, and has vowed to vanquish these venal and virulent vermin vanguarding vice and vouchsafing the violently vicious and voracious violation of volition. The only verdict is vengeance; a vendetta, held as a votive, not in vain, for the value and veracity of such shall one day vindicate the vigilant and the virtuous. Verily, this vichyssoise of verbiage veers most verbose vis-à-vis an introduction, and so it is my very good honor to meet you and you may call me V."
- V
spived2 is offline  
Old 02-21-2005, 09:03 AM   #7 (permalink)
Insane
 
LewisCouch's Avatar
 
Location: Pacific NW
Sorry, I misunderstood your first post. Having read it more closely, it would be helpful to know what method of depreciation you're using to calculate your values. For example:

The original cost of your asset is $10,000. The salvage value is $5000 after the asset has been fully depreciated. You decide that this asset's useful life is 5 years. The following formula will calculate the depreciation for the fifth year using the sum of years digits depreciation method.

=SYD(cost, salvage, life, period)
=SYD(10000,5000,5,5) returns: $333.33

The conditional method of deriving/assigning values will work for you, however, there may be a superior method when making your initial calculation.
__________________
"The gift of liberty is like that of a horse, handsome, strong, and high-spirited. In some it arouses a wish to ride; in many others, on the contrary, it increases the desire to walk."

-- Massimo d'Azeglio
LewisCouch is offline  
Old 02-21-2005, 06:06 PM   #8 (permalink)
Tilted
 
jusolson00's Avatar
 
awesome, I think i finally got it to work, using the If function. The formula bar looks hellish, with all the variables and stuff, ha, BUT IT WORKS!@ Thanks eveybody.
Okay, i have one other small question, when typing in formulas, if say you want to use cell A2 as a constant, so that to change the output of all the formulas, you only have to change A2, how to do you keep that cell constant in the formula when you copy the formula to other cells. So for instance, if i drag the formula to the cell below it, instead of using A2 as a referce, it will change to B2. seems to me i used to use a $ sign in front of the constant cell in school, but here at home that doesnt seem to work, I am using excel 2000 by the way if that makes a difference. Thanks again for the help!

Justin
jusolson00 is offline  
Old 02-21-2005, 06:23 PM   #9 (permalink)
Adequate
 
cyrnel's Avatar
 
Location: In my angry-dome.
Yep, a $ sign before the row or column designator will make that part an absolute reference. This is especially useful if you'll be using fill operations to replicate the formula but need part of the forumula to remain fixed by row, column, or both.

a1 vs $a1 vs a$1 vs $a$1

You may want to look into addressing by name to simplify your formulas.
cyrnel is offline  
 

Tags
excel

Thread Tools

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



All times are GMT -8. The time now is 06:03 AM.

Tilted Forum Project

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360