Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rahim Jaffer
 
Posts: n/a
Default What if I want the answer to be in Dollars or Percentage.

I'm using Excel to try to do some accounting.
Using IF in the formula, If a client chooses option 1,2 or 3, the answer is
in dollars. If they choose 4 or 5, I want the answer to be in percentage.
What do I have to add in the formula if the answer has to be in Percentage
or in Dollars.

Rahim Jaffer
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Fred Smith
 
Posts: n/a
Default What if I want the answer to be in Dollars or Percentage.

Something like:

=if(a1<4,$ formula,% formula)

Does that help?

--
Regards,
Fred


"Rahim Jaffer" <Rahim wrote in message
...
I'm using Excel to try to do some accounting.
Using IF in the formula, If a client chooses option 1,2 or 3, the answer is
in dollars. If they choose 4 or 5, I want the answer to be in percentage.
What do I have to add in the formula if the answer has to be in Percentage
or in Dollars.

Rahim Jaffer



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rahim Jaffer
 
Posts: n/a
Default What if I want the answer to be in Dollars or Percentage.



"Rahim Jaffer" wrote:

I'm using Excel to try to do some accounting.
Using IF in the formula, If a client chooses option 1,2 or 3, the answer is
in dollars. If they choose 4 or 5, I want the answer to be in percentage.
What do I have to add in the formula if the answer has to be in Percentage
or in Dollars.

Rahim Jaffer


Here's the formula
=IF(C3=C27,10%,IF(C3=C28,15%,IF(C3=C31,25%,IF(C3=C 29,G3-D3,IF(C3=C30,G3-D3)))))

If C3 = C27, C28 or C31, I want the cell to be in Percenile. Now if C3 = C29
or C30, I want the cell to be in dollars. How do I do that so that it does it
automatically?

Rahim Jaffer
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Fred Smith
 
Posts: n/a
Default What if I want the answer to be in Dollars or Percentage.

You can't have two separate formats for the same cell.

The best you can do is format the cell as a number, with no signs. If this works
for you, then remove the "%" signs from your formula. Then 10% will display as
10.00 and the dollars will display as, say 12,345.00

--
Regards,
Fred


"Rahim Jaffer" wrote in message
...


"Rahim Jaffer" wrote:

I'm using Excel to try to do some accounting.
Using IF in the formula, If a client chooses option 1,2 or 3, the answer is
in dollars. If they choose 4 or 5, I want the answer to be in percentage.
What do I have to add in the formula if the answer has to be in Percentage
or in Dollars.

Rahim Jaffer


Here's the formula
=IF(C3=C27,10%,IF(C3=C28,15%,IF(C3=C31,25%,IF(C3=C 29,G3-D3,IF(C3=C30,G3-D3)))))

If C3 = C27, C28 or C31, I want the cell to be in Percenile. Now if C3 = C29
or C30, I want the cell to be in dollars. How do I do that so that it does it
automatically?

Rahim Jaffer



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson
 
Posts: n/a
Default What if I want the answer to be in Dollars or Percentage.

I used a custom format of:

[3]0.00%;$0.00

and entered this to see this
1 $1.00
1.4 $1.40
2 $2.00
3 $3.00
4 400.00%
5 500.00%

But maybe you really meant:
[<1]0.00%;$0.00

and entered this to see this
.5 50.00%
.75 75.00%
1 $1.00
1.4 $1.40
2 $2.00
3 $3.00
4 $4.00
5 $5.00



Rahim Jaffer wrote:

I'm using Excel to try to do some accounting.
Using IF in the formula, If a client chooses option 1,2 or 3, the answer is
in dollars. If they choose 4 or 5, I want the answer to be in percentage.
What do I have to add in the formula if the answer has to be in Percentage
or in Dollars.

Rahim Jaffer


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson
 
Posts: n/a
Default What if I want the answer to be in Dollars or Percentage.

And remember that formatting can't change the value in the cell.

Dave Peterson wrote:

I used a custom format of:

[3]0.00%;$0.00

and entered this to see this
1 $1.00
1.4 $1.40
2 $2.00
3 $3.00
4 400.00%
5 500.00%

But maybe you really meant:
[<1]0.00%;$0.00

and entered this to see this
.5 50.00%
.75 75.00%
1 $1.00
1.4 $1.40
2 $2.00
3 $3.00
4 $4.00
5 $5.00

Rahim Jaffer wrote:

I'm using Excel to try to do some accounting.
Using IF in the formula, If a client chooses option 1,2 or 3, the answer is
in dollars. If they choose 4 or 5, I want the answer to be in percentage.
What do I have to add in the formula if the answer has to be in Percentage
or in Dollars.

Rahim Jaffer


--

Dave Peterson


--

Dave Peterson
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default What if I want the answer to be in Dollars or Percentage.

Here's the formula
=IF(C3=1,10%,IF(C3=2,15%,IF(C5=3,25%,IF(C3=3,G3-D3,IF(C3=4,G3-D3)))))

If C3 = 1,2 or 5, I want the cell to be in Percentile. Now if C3 = 3 or 4, I
want the cell to be in dollars. How do I do that so that it does it
automatically?

Rahim Jaffer

"Dave Peterson" wrote:

And remember that formatting can't change the value in the cell.

Dave Peterson wrote:

I used a custom format of:

[3]0.00%;$0.00

and entered this to see this
1 $1.00
1.4 $1.40
2 $2.00
3 $3.00
4 400.00%
5 500.00%

But maybe you really meant:
[<1]0.00%;$0.00

and entered this to see this
.5 50.00%
.75 75.00%
1 $1.00
1.4 $1.40
2 $2.00
3 $3.00
4 $4.00
5 $5.00

Rahim Jaffer wrote:

I'm using Excel to try to do some accounting.
Using IF in the formula, If a client chooses option 1,2 or 3, the answer is
in dollars. If they choose 4 or 5, I want the answer to be in percentage.
What do I have to add in the formula if the answer has to be in Percentage
or in Dollars.

Rahim Jaffer


--

Dave Peterson


--

Dave Peterson

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 623
Default What if I want the answer to be in Dollars or Percentage.

Did you try Dave's answer? If so, what happened? We'll assume it didn't work,
otherwise you wouldn't be posting back, but we need to know what results you got
before we can help you further.

To repeat, the most likely solution is a custom format of:

[<1]0.00%;$0.00

If that doesn't solve your problem, tell us what range of values G3-D3 has.

--
Regards,
Fred


"Rahim Jaffer" wrote in message
...
Here's the formula
=IF(C3=1,10%,IF(C3=2,15%,IF(C5=3,25%,IF(C3=3,G3-D3,IF(C3=4,G3-D3)))))

If C3 = 1,2 or 5, I want the cell to be in Percentile. Now if C3 = 3 or 4, I
want the cell to be in dollars. How do I do that so that it does it
automatically?

Rahim Jaffer

"Dave Peterson" wrote:

And remember that formatting can't change the value in the cell.

Dave Peterson wrote:

I used a custom format of:

[3]0.00%;$0.00

and entered this to see this
1 $1.00
1.4 $1.40
2 $2.00
3 $3.00
4 400.00%
5 500.00%

But maybe you really meant:
[<1]0.00%;$0.00

and entered this to see this
.5 50.00%
.75 75.00%
1 $1.00
1.4 $1.40
2 $2.00
3 $3.00
4 $4.00
5 $5.00

Rahim Jaffer wrote:

I'm using Excel to try to do some accounting.
Using IF in the formula, If a client chooses option 1,2 or 3, the answer
is
in dollars. If they choose 4 or 5, I want the answer to be in percentage.
What do I have to add in the formula if the answer has to be in
Percentage
or in Dollars.

Rahim Jaffer

--

Dave Peterson


--

Dave Peterson



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding "and" to Spellnumber code Ken G. Excel Discussion (Misc queries) 10 July 22nd 06 12:53 PM
Calculating a percentage with the end percentage in mind Shadowshady Excel Discussion (Misc queries) 2 June 17th 06 09:41 AM
Displaying percentage in ranges in pivot table pamarty Excel Worksheet Functions 3 May 10th 06 09:54 PM
Percentage difference calc that knows the largest figure Mighty Magpie Excel Discussion (Misc queries) 3 November 10th 05 06:45 PM
i cant get the exact answer e.g answer is 13.49% i got 13.00% zai Excel Discussion (Misc queries) 3 June 9th 05 01:00 PM


All times are GMT +1. The time now is 08:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"