MrExcel Message Board

Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old Feb 27th, 2002, 01:56 PM   #1
SquirrelGuirrel
New Member
 
Join Date: Feb 2002
Location: California
Posts: 10
Default

Currently I am using the VAR function to calculated a variance % between 2 numbers. What I want to do it show whether it was a positive or negative variance and have the negative variance show in parentheses or preferably show in red text. I think it's partially a formual issue and conditional formating. Also, my conditional formating box doesn't appear to have a colored text can this be done?


SquirrelGuirrel is offline   Reply With Quote
Old Feb 27th, 2002, 02:01 PM   #2
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,314
Default

Quote:
On 2002-02-27 12:56, SquirrelGuirrel wrote:
Currently I am using the VAR function to calculated a variance % between 2 numbers. What I want to do it show whether it was a positive or negative variance and have the negative variance show in parentheses or preferably show in red text. I think it's partially a formual issue and conditional formating. Also, my conditional formating box doesn't appear to have a colored text can this be done?


Try

Format|Cells

Choose Accounting on the Number tab.

Set Currency Symbol to None.
Aladin Akyurek is offline   Reply With Quote
Old Feb 27th, 2002, 03:33 PM   #3
SquirrelGuirrel
New Member
 
Join Date: Feb 2002
Location: California
Posts: 10
Default

Hi Aladin
It's me, Heidi from a few weeks ago. You are in the Netherlands, yes? I had to re-register for the new site so I have a new user name.
Here is my problem more clearly:
Last month This Month Variance
12.5% 10.0% 0.25%

So since this month sales were down 12%
I would like the varianc value to be negative 12% and red. I tried the currency thing and it didn't work Is there something I can do in my formulat to compare the variance to the original number to show that it is a decrease? Thank you
SquirrelGuirrel is offline   Reply With Quote
Old Feb 27th, 2002, 04:03 PM   #4
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,314
Default

Quote:
On 2002-02-27 14:33, SquirrelGuirrel wrote:
Hi Aladin
It's me, Heidi from a few weeks ago. You are in the Netherlands, yes? I had to re-register for the new site so I have a new user name.
Here is my problem more clearly:
Last month This Month Variance
12.5% 10.0% 0.25%

So since this month sales were down 12%
I would like the varianc value to be negative 12% and red. I tried the currency thing and it didn't work Is there something I can do in my formulat to compare the variance to the original number to show that it is a decrease? Thank you
Hi Heidi,

How about entered in C2

=(A2>B2)*-(the-formula-for-variance)+(A2
where A2 houses the last month figure and B2 this month figure.

You could then format C2 as Number and choose for Negative numbers the red colored number between parens.

If this does not work for you, please post the formula for variance (It would take too long to weed thr the Archives).

Aladin


[ This Message was edited by: Aladin Akyurek on 2002-02-27 16:21 ]

[ This Message was edited by: Aladin Akyurek on 2002-02-27 16:24 ]
Aladin Akyurek is offline   Reply With Quote
Old Feb 27th, 2002, 04:57 PM   #5
SquirrelGuirrel
New Member
 
Join Date: Feb 2002
Location: California
Posts: 10
Default

Here is the speadsheet section

A6 B6 C6
%This month PriorMonth% Variance
12.5% 10.0% 0.00000%

This is the function for variance:
=var(a6,b6)
This is the formula I entered:
=(A6>B6)*-VAR(A6,B6)+(A6>B6)*(VAR(A6,B6))

I got 0% as shown in C2, but there was a decrease of .25%

Hope you are having a nice day today

SquirrelGuirrel is offline   Reply With Quote
Old Feb 27th, 2002, 05:30 PM   #6
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,314
Default

Quote:
On 2002-02-27 15:57, SquirrelGuirrel wrote:
Here is the speadsheet section

A6 B6 C6
%This month PriorMonth% Variance
12.5% 10.0% 0.00000%

This is the function for variance:
=var(a6,b6)
This is the formula I entered:
=(A6>B6)*-VAR(A6,B6)+(A6>B6)*(VAR(A6,B6))

I got 0% as shown in C2, but there was a decrease of .25%

Hope you are having a nice day today
OK, I had a typo in the formula in my previous reply.

Why do you use VAR? And, how do you compute, using ordinary maths, a .25% decrease given

%This month = 12.5% and

PriorMonth% = 10.0%

Aladin
Aladin Akyurek is offline   Reply With Quote
Old Feb 28th, 2002, 04:40 PM   #7
Guest
 
Posts: n/a
Default

Sorry, the 25% was a typo that I didn't notice until I got home. I gues I don't need to use VAR I just tried it for the first time. Thank you for your help I wil try your suggestions. The board seems really busy these days. It's great, so helpful. We should be able to repay you in some way. If you ever need help with interior design let me know I know it's not rocket science but it's what I'm good at..
Thanks again, Heidi
  Reply With Quote
Old Mar 1st, 2002, 01:20 PM   #8
Chris Davison
MrExcel MVP
 
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
Default

Quote:
Also, my conditional formating box doesn't appear to have a colored text
that's a bit odd.

just to check :

format
conditional formatting
format
font tab

and bang in the middle is "Colour"
__________________
:: Pharma Z - Family drugstore ::
Chris Davison is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
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 On

Forum Jump


All times are GMT -4. The time now is 11:17 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
All contents Copyright 1998-2012 by MrExcel Consulting.
diabetic desserts recipes recipes Diabetic Soups Holiday Pizza Recipes Popcorn Recipes Recipes For Microwave Pasta Recipes Casserole Recipes Chili Recipes Curry Recipes Crockpot Recipes Apples Recipes Bread Recipes Vegetarian Recipes Vegetable recipes Desserts Recipes Appetizers Ethnic Recipes Meat Dishes Barbecue Recipes Sauces Recipes Marinade Recipes Low Fat Recipes Frugal Gourmet Kitchen Classics Recipes On The Grill Cook Books Seafood Recipes Cajun Recipes Breads Low Fat Low Fat Breads Bread Machine Recipes Yeast Breads Quick Breads Fat Free Vegetarian Salad Recipes Eggplant Recipes Radish Recipes Tomato Recipes Jalapeno Recipes Potato Recipes Lettuce Recipes Cabbage Recipes Beans Ambrosia Recipes Biscotti Recipes Desserts Low Fat Cookie Recipes Cheesecake Recipes Cake Recipes Pie Recipes Muffin Recipes Custard Recipes Best Appetizers Appetizers Low Fat Salsa Recipes Dip Recipes International Recipes Afghan Recipes Alaska Recipes French Recipes German Recipes Greek Recipes Italian Recipes Spanish Recipes Thai Recipes Korean Recipes Chinese Recipes Mexican Recipes Indian Recipes Beef Recipes Pork Pork & Ham Pork Butts Pork Chop Recipes Pork Ribs Rulled Pork Poultry Recipes Stews Recipes Ground Beef Barbecue Grill Barbecue Smoker All Purpose Sauce BBQ Sauce Barbecue Sauce Carolina BBQ Sauce Pickle Recipes Marinades Smoking Low Fat Appetizers & Dips Low Fat Breakfast Low Fat Cakes Low Fat Cheesecakes Low Fat Cookies Low Fat Desserts Low Fat Fish & Seafood Low Fat Meats Low Fat Pasta Low Fat Pies Low Fat Salads Low Fat Sandwiches Low Fat Sauces & Condiments Low Fat Sides Low Fat Soups Low Fat Vegetarian Baker's Dozen Taste of Home Recipe Book Bon Appetit Cookbook Blacktie Cookbook Buster Cook Book Cookbook USA Cook Book Cook Book Sara's Cookbook Sara's Cookbook Appetizers and Dips Poultry recipes Diabetic recipes Holiday recipes Miscellaneous recipes 110 recipes 1986 Usenet cookbook 2900 recipes Cyberrealm recipes Great sysops of world Specialty recipes Ceideburg recipes Cheese recipes Chili recipes Fruits recipes Garlic recipes Great chefs of NY Londontowne recipes Raisins recipes Recipes for kids US Food Vegetarian recipes Bread recipes Drinks Meat Dishes Brisket recipes Caribou recipes Chicken recipes Filet mignons recipes Pork recipes Swordfish recipes Turkey recipes Pasta recipes Uncategorized recipes Ethnic recipes Canada recipes English recipes Ethiopia recipes Germany recipes Greece recipes Mexican recipes Philippines recipes Welsh recipes Microwave recipes Soups recipes Vegetable recipes Asparagus recipes Barley recipes Brown rice recipes Lentil recipes Mushrooms recipes Salads recipes Wild rice Desserts recipes Cakes recipes Chocolate recipes Cookies recipes Ice cream recipes