editing formula.

josaiah

Board Regular
Joined
Jun 14, 2011
Messages
61
=IF(B3<>"",ABS(IF(OR(G3="SGD",J3="SGD"),SUMIF(G3:J3,"SGD",H3:K3),IF(ISNUMBER(MATCH(G3,{"EUR","AUD","NZD","USD","CAD","CHF","GBP"},0)),H3*N3,IF(G3="JPY",H3/N3/100,H3/N3)))))

hi all, pls help to edit my formula.

if my cell N3 is blank, the value return #DIV/0!
i want it to return as 0
 

Some videos you may like

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

jamtay317

Well-known Member
Joined
Mar 6, 2013
Messages
769
=iferror(IF(B3<>"",ABS(IF(OR(G3="SGD",J3="SGD"),SUMIF(G3:J3,"SGD",H3:K3),IF(ISNUMBER(MATCH(G3,{"EUR","AUD","NZD","USD","CAD","CHF","GBP"},0)),H3*N3,IF(G3="JPY",H3/N3/100,H3/N3))))),0)
 

Marcelo Branco

MrExcel MVP
Joined
Aug 23, 2010
Messages
16,407
See if this is OK

=IF(B3<>"",ABS(IF(OR(G3="SGD",J3="SGD"),SUMIF(G3:J3,"SGD",H3:K3),IF(AND(ISNUMBER(N3),N3<>0),IF(ISNUMBER(MATCH(G3,{"EUR","AUD","NZD","USD","CAD","CHF","GBP"},0)),H3*N3,IF(G3="JPY",H3/N3/100,H3/N3)),0))),"")

M.
 

josaiah

Board Regular
Joined
Jun 14, 2011
Messages
61
=iferror(IF(B3<>"",ABS(IF(OR(G3="SGD",J3="SGD"),SUMIF(G3:J3,"SGD",H3:K3),IF(ISNUMBER(MATCH(G3,{"EUR","AUD","NZD","USD","CAD","CHF","GBP"},0)),H3*N3,IF(G3="JPY",H3/N3/100,H3/N3))))),0)


hi, the value now return #NAME?

FYI, im using a 2003 excel.
 

Marcelo Branco

MrExcel MVP
Joined
Aug 23, 2010
Messages
16,407

ADVERTISEMENT

YES. i've tried in row 3.


G H J K N O

THB 228 USD 228 1.2 Formula

the formula is not working if my cell N is blank.

With N3 blank the formula returns 0. Isn't it correct?

M.
 

Marcelo Branco

MrExcel MVP
Joined
Aug 23, 2010
Messages
16,407
nope. the formula didnt returns 0.

it return #NAME?

Sorry, i don't understand why the formula below returns #NAME in Excel 2003

=IF(B3<>"",ABS(IF(OR(G3="SGD",J3="SGD"),SUMIF(G3:J3,"SGD",H3:K3),IF(AND(ISNUMBER(N3),N3<>0),IF(ISNUMBER(MATCH(G3,{"EUR","AUD","NZD","USD","CAD","CHF","GBP"},0)),H3*N3,IF(G3="JPY",H3/N3/100,H3/N3)),0))),"")

I dont have Excel 2003 to do tests, but as far as i know, the functions used in the formula (ABS, IF, ISNUMBER, MATCH) are all available in Excel 2003. (maybe, i'm wrong...)

Maybe someone else can help you.

M.
 

josaiah

Board Regular
Joined
Jun 14, 2011
Messages
61
Sorry, i don't understand why the formula below returns #NAME in Excel 2003

=IF(B3<>"",ABS(IF(OR(G3="SGD",J3="SGD"),SUMIF(G3:J3,"SGD",H3:K3),IF(AND(ISNUMBER(N3),N3<>0),IF(ISNUMBER(MATCH(G3,{"EUR","AUD","NZD","USD","CAD","CHF","GBP"},0)),H3*N3,IF(G3="JPY",H3/N3/100,H3/N3)),0))),"")

I dont have Excel 2003 to do tests, but as far as i know, the functions used in the formula (ABS, IF, ISNUMBER, MATCH) are all available in Excel 2003. (maybe, i'm wrong...)

Maybe someone else can help you.

M.

hi,

there is a confusion. so sorry abt tat.
i saw the formula you posted.

i've got it.
its working now. thanks alot! u're a great help.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,575
Messages
5,596,961
Members
414,114
Latest member
Lost_User21

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
Top