Vlook up to convert negative numbers to positive

tinferns

Board Regular
Joined
Aug 18, 2009
Messages
150
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Team,
Need your help in correcting the below formula.

So here if the result in Column I3 is negative, I want ABS to convert it to positive.
If the number in I3 is positive, then let it continue the same way - (I3 * 1)

=if(VLOOKUP(G3,Table6[[Refrence]:[Total Pending]],9,0),<0,ABS(i3),(i3*1))

Please advise the correct formula for this action.

F.Y.I - I will be using this formula on Office 365 and Excel 2019

Thanks,
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
maybe enough will be
=--ABS(VLOOKUP(G3,Table6[[Refrence]:[Total Pending]],9,0))
and additionally you can use IFERROR()
 
Upvote 0
Solution
Not a big deal but if sandy666's formula gives you what you want, then so should this which doesn't require the extra two calculations caused by the "--" at the start.

Excel Formula:
=ABS(VLOOKUP(G3,Table6[[Refrence]:[Total pending]],9,0))
 
Upvote 0
Thank Sandy666 and Peter SSs.. you guys are awesome.. Thanks a ton...
 
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,390
Members
448,957
Latest member
Hat4Life

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top