![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Location: Gold Coast, Queensland, Australia
Posts: 23
|
Last week I sold $110 (A1), this week I sold $77 (B1) the percentage increase/decrease (C1) is -30%, what formula do I need to place in C1?
|
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
In C1 enter: =(B1-A1)/A1 Format C1 as %. |
|
|
|
|
|
#3 |
|
New Member
Join Date: Apr 2002
Location: Gold Coast, Queensland, Australia
Posts: 23
|
Thanks for your reply, that doesn't work, it gives 43%, were the answer is a decrease of -30% in sales, $110 last week, this week down by 30% to $77
|
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
=(B1/A1)-1
Tom [ This Message was edited by: TsTom on 2002-04-27 04:22 ] |
|
|
|
|
|
#5 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
=(B1-A1)/A1 in C1 gives me -30%, when A1 houses 110 and B1 77. |
|
|
|
|
|
|
#6 |
|
New Member
Join Date: Apr 2002
Location: Gold Coast, Queensland, Australia
Posts: 23
|
My appologies Aladin, I don't know what I did, but your formula works, thank you very much. I have one more question for you. I am calculating 100/10 = 10, if 100/0 = 0, how do I get it to display "0" rather than the error code "Num/0!" ???
|
|
|
|
|
|
#7 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
Aladin has left the building...
=IF(ISERROR(100/0),0,100/0) Tom |
|
|
|
|
|
#8 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
=IF(E2,E1/E2,0) When E1 houses 100 and E2 0 (or E2 is empty), this formula will return 0. The condition of the IF function in the above formula for any number other than 0 is TRUE, otherwise FALSE. When the condition evaluates to TRUE than the divison E1/E2 is performed, otherwise 0 is returned. Aladin |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|