Convert negative numbers to positive in Excel

formulas IF

#1 BMan

BMan

Newbie

• Members
• 6 posts

Posted 26 November 2013 - 03:18 PM

Hi,

I have a spreadhseet that has positive and negative numbers for invoices and credits.

I want to convert the values of the credits to positive numbers without making the invoices negative (so can't multiply by -1).

#2 Jonathan

Jonathan

• 845 posts

Posted 26 November 2013 - 03:22 PM

You can create a formula that will do this by using an IF function to check whether the value is negative and then multiplying the value by -1 if it is.

Your IF formula will look something like:

=IF(B2<0,B2*-1,B2)

If you're having trouble understanding this formula, you can find more explanation of the IF function in Expert Skills Lesson 3-5: Use the IF logic function.

I have attached a copy of your spreadsheet with the formula applied.

I hope this is helpful.  Feel free to reply if you need any more assistance.

Jonathan is part of the professional team who answer Excel-related questions posted on the ExcelCentral.com forums.
Jonathan also tests our courses prior to publication and has worked on all of our ten world bestselling Excel books for Excel 2007, Excel 2010, Excel 2013, Excel 2016 for Windows and Excel 2016 for Apple Mac. Jonathan has also worked on over 850 video lessons for or video courses covering Excel 2007, Excel 2010 and Excel 2013.
As well as extensive Excel knowledge, Jonathan has worked in the IT world for over thirteen years as a programmer, database designer and analyst for some of the world's largest companies.

Also tagged with one or more of these keywords: formulas, IF

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users