ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How do I use Conditional Formatting to change pos No to a Neg No (https://www.excelbanter.com/excel-discussion-misc-queries/153073-how-do-i-use-conditional-formatting-change-pos-no-neg-no.html)

Wannabegeek

How do I use Conditional Formatting to change pos No to a Neg No
 
I am trying to create a conditional format to change a positive number to a
negative number if a specific condition exists. ie.
=if(C5="Expense"or"Reimbursement", change C7 to negative
Not sure how to finish it. Anyone.

T. Valko

How do I use Conditional Formatting to change pos No to a Neg No
 
Try this:

I'm assuming that C7 will always be a positive number.

=IF(OR(C5={"Expense","Reimbursement"}),-C7,C7)

--
Biff
Microsoft Excel MVP


"Wannabegeek" wrote in message
...
I am trying to create a conditional format to change a positive number to a
negative number if a specific condition exists. ie.
=if(C5="Expense"or"Reimbursement", change C7 to negative
Not sure how to finish it. Anyone.





All times are GMT +1. The time now is 03:51 PM.

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