ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How to discover the difference (https://www.excelbanter.com/excel-worksheet-functions/227632-how-discover-difference.html)

Mike Blakeley

How to discover the difference
 
I am creating a worksheet and I can't quite get the formula to work.
I want to compare two numbers and see if they are equal to, less than
or greater than a constant integer. For instance...if it costs $87.00
for Limo but Sally has paid $100.00 how much is she due? or if Roger
has paid $70.00 but the Limo costs $87.00 how much does he owe?

Any suggestions?

Eduardo

How to discover the difference
 
Hi,
If I understood correctly you will have in let's say column A the cost and
in column B the amount paid, so in column C enter
=A1-B1
This will give you the difference, if negative account has been overpaid

If this was helpful please press yes, Thank you

"Mike Blakeley" wrote:

I am creating a worksheet and I can't quite get the formula to work.
I want to compare two numbers and see if they are equal to, less than
or greater than a constant integer. For instance...if it costs $87.00
for Limo but Sally has paid $100.00 how much is she due? or if Roger
has paid $70.00 but the Limo costs $87.00 how much does he owe?

Any suggestions?


Don Guillett

How to discover the difference
 
How about this
=IF(G5<87,87-G5&" due",IF(G587,G5-87&" refund","OK"))

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Mike Blakeley" wrote in message
...
I am creating a worksheet and I can't quite get the formula to work.
I want to compare two numbers and see if they are equal to, less than
or greater than a constant integer. For instance...if it costs $87.00
for Limo but Sally has paid $100.00 how much is she due? or if Roger
has paid $70.00 but the Limo costs $87.00 how much does he owe?

Any suggestions?



Don Guillett

How to discover the difference
 
Better
=IF(G5<87,DOLLAR(87-G5)&" due",IF(G587,DOLLAR(G5-87)&" refund","OK"))

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Mike Blakeley" wrote in message
...
I am creating a worksheet and I can't quite get the formula to work.
I want to compare two numbers and see if they are equal to, less than
or greater than a constant integer. For instance...if it costs $87.00
for Limo but Sally has paid $100.00 how much is she due? or if Roger
has paid $70.00 but the Limo costs $87.00 how much does he owe?

Any suggestions?



Mike Blakeley

How to discover the difference
 
On Apr 14, 9:45*am, "Don Guillett" wrote:
Better
=IF(G5<87,DOLLAR(87-G5)&" due",IF(G587,DOLLAR(G5-87)&" refund","OK"))

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"Mike Blakeley" wrote in message

...



I am creating a worksheet and I can't quite get the formula to work.
I want to compare two numbers and see if they are equal to, less than
or greater than a constant integer. For instance...if it costs $87.00
for Limo but Sally has paid $100.00 how much is she due? *or if Roger
has paid $70.00 but the Limo costs $87.00 how much does he owe?


Any suggestions?- Hide quoted text -


- Show quoted text -


Awesome! you're a genius. Thank you for your help. Mike

Mike Blakeley

How to discover the difference
 
On Apr 14, 9:44*am, "Don Guillett" wrote:
How about this
=IF(G5<87,87-G5&" due",IF(G587,G5-87&" refund","OK"))

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"Mike Blakeley" wrote in message

...



I am creating a worksheet and I can't quite get the formula to work.
I want to compare two numbers and see if they are equal to, less than
or greater than a constant integer. For instance...if it costs $87.00
for Limo but Sally has paid $100.00 how much is she due? *or if Roger
has paid $70.00 but the Limo costs $87.00 how much does he owe?


Any suggestions?- Hide quoted text -


- Show quoted text -


Thanks Don, actually the first worked better for my purposes. With the
DOLLAR in the equation the result is formatted for currency. Thank you
so much for your response! Mike

Don Guillett

How to discover the difference
 
Glad to help

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Mike Blakeley" wrote in message
...
On Apr 14, 9:44 am, "Don Guillett" wrote:
How about this
=IF(G5<87,87-G5&" due",IF(G587,G5-87&" refund","OK"))

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"Mike Blakeley" wrote in
message

...



I am creating a worksheet and I can't quite get the formula to work.
I want to compare two numbers and see if they are equal to, less than
or greater than a constant integer. For instance...if it costs $87.00
for Limo but Sally has paid $100.00 how much is she due? or if Roger
has paid $70.00 but the Limo costs $87.00 how much does he owe?


Any suggestions?- Hide quoted text -


- Show quoted text -


Thanks Don, actually the first worked better for my purposes. With the
DOLLAR in the equation the result is formatted for currency. Thank you
so much for your response! Mike



All times are GMT +1. The time now is 11:29 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com