Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
karen
 
Posts: n/a
Default how do I create a if-then formula?

I need to create a formula in which if column a is bigger then b, then
subtract the two columns and multiply by 3%, or if column b is bigger then
find the difference and multiple by 5%.
  #2   Report Post  
bj
 
Posts: n/a
Default

In C1 enter
=if(A1B1,(A1-B1)*.03,(B1-A1)*.05)
You should format it as %


"karen" wrote:

I need to create a formula in which if column a is bigger then b, then
subtract the two columns and multiply by 3%, or if column b is bigger then
find the difference and multiple by 5%.

  #3   Report Post  
CLR
 
Posts: n/a
Default

=MAX((A1-B1)*3%,(B1-A1)*5%)

Vaya con Dios,
Chuck, CABGx3


"karen" wrote in message
...
I need to create a formula in which if column a is bigger then b, then
subtract the two columns and multiply by 3%, or if column b is bigger then
find the difference and multiple by 5%.



  #4   Report Post  
bj
 
Posts: n/a
Default

Very nice

"CLR" wrote:

=MAX((A1-B1)*3%,(B1-A1)*5%)

Vaya con Dios,
Chuck, CABGx3


"karen" wrote in message
...
I need to create a formula in which if column a is bigger then b, then
subtract the two columns and multiply by 3%, or if column b is bigger then
find the difference and multiple by 5%.




  #5   Report Post  
CLR
 
Posts: n/a
Default

Thanks for the compliment.............of course it's not an "IF" statement
like the OP requested, but it seemed to be an interesting
alternative..........

Vaya con Dios,
Chuck, CABGx3


"bj" wrote in message
...
Very nice

"CLR" wrote:

=MAX((A1-B1)*3%,(B1-A1)*5%)

Vaya con Dios,
Chuck, CABGx3


"karen" wrote in message
...
I need to create a formula in which if column a is bigger then b, then
subtract the two columns and multiply by 3%, or if column b is bigger

then
find the difference and multiple by 5%.








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
how do I create a if-then formula? karen Excel Worksheet Functions 1 May 3rd 05 09:19 PM
How to create specific formula STS Excel Worksheet Functions 4 May 2nd 05 01:44 AM
Create Formula Lazia Excel Discussion (Misc queries) 2 April 25th 05 04:09 PM
How do I create a formula that would allow me to subtract from a d Justlearning New Users to Excel 5 January 27th 05 09:47 PM
How do I create a formula in Excel that will countif or sumif bef. bkclark Excel Worksheet Functions 4 November 10th 04 05:30 PM


All times are GMT +1. The time now is 10:31 AM.

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"