FALSE return

toony

Board Regular
Joined
Mar 20, 2014
Messages
91
Office Version
  1. 365
Hi. I have the below formula but not sure how to avoid the FALSE return if you can help please.

=IFERROR(IF(V15="CNY",U15/Y15,IF(V15="USD",U15/Y16)),"")
 
Thanks Jtakw. Thanks for the tip. I've used only one site. Link: IF only work up to 16

I did realise that with the long formula i didn't anchor it and it's now working just fine, silly error but not the most experienced. Many thanks.

Regarding the shorter version below, it goes to the bottom now but loads of empty or 0 vaues for somereason.
I have dragged down column L all the way down as indicated. Cheers
=IFERROR(G2/LOOKUP(2,1/SEARCH(H2,I$2:I$16),J$2:J$16),"")
 

Attachments

  • Untitled.jpg
    Untitled.jpg
    184.2 KB · Views: 4
Upvote 0

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
I have used =IFERROR(U15/IF(V15="CNY",Y15,Y16),""). I love it because it's short and it works perfect.....but only up to row 16 as attached.

You haven't put the 1 (numeric number one) in J5 for GBP as I said in my Post #10 BOLD and Underlined.

Please confirm your table data Starts at I2:I16 for Currency, and J2:J16 for Conversion rate.

Also, just want to point out, the "short" formula in your quote above works ONLY for CNY, as it's the only conditions it checks for, the results you get from that formula will be incorrect.
 
Upvote 0
Again, you MUST put 1 in J5, I put my formula in Column L and it works correctly.
As you can see, All the results in Column K using that other formula are Incorrect, except for K2, the rest are wrong.

Book2.xlsx
GHIJKL
1Net priceActual currencyCurrency. 15 in totalPounds conversion to actual price currencyUSING = IFERROR(G2/IF(H2="CNY",J2,J3),"")My Formula
270,520.0USDCNY8.3853,424.2453424.24242
313,800.0CNYUSD1.3210,454.551646.778043
43,360.0VNDVND30,129.003,360.000.111520462
53,672.0GBPGBP1.003,085.713672
615,000.0EUREUR1.191,303.2112605.04202
71,800.0NOKNOK11.511,084.34156.3857515
8700.0CADCAD1.66569.11421.686747
91,230.0CNYCHF1.231,000.00146.778043
10560.0JPYJPY157.0799.643.565289361
115,523.0CNYPLN5.62982.74659.0692124
12480.0CNYAUD1.78269.6657.27923628
13120.0CNYSGD1.7967.0414.31980907
14425.0USDDKK8.8815.86321.969697
154,300.0VNDMXN26.80346.490.142719639
164,300.0VNDSEK12.41#DIV/0!0.142719639
17495.5GBP#DIV/0!495.5
18375.0GBP#DIV/0!375
1970.0GBP#DIV/0!70
20175.0GBP#DIV/0!175
21950.0GBP#DIV/0!950
22500.0GBP#DIV/0!500
23177.0USD#DIV/0!134.0909091
241,720.0CNY#DIV/0!205.2505967
2514,208.0CNY#DIV/0!1695.465394
Original
Cell Formulas
RangeFormula
K2:K25K2=G2/IF(H2="CNY",J2,J3)
L2:L25L2=IFERROR(G2/LOOKUP(2,1/SEARCH(H2,I$2:I$16),J$2:J$16),"")
Named Ranges
NameRefers ToCells
Currency=Original!$I$2:$I$16L2:L25
 
Upvote 0
Hi Thank you for the advise. Tried to follow it but when i go to browse bottom (3rd bullet) can't see any xl2BB add in

ou need to note where you saved the xl2bb.xlam file then it seems like you have gone astray in this section of the instructions.

1634786367900.png
The file is downloaded as a .zip file. You must extract it into a folder, then browse to find the folder as part of the 3rd bullet point.

1647804541870.png
 
Upvote 0
mmmmm. Yes, I thought so, but I think it was giving correct results somehow up to row 14 but yes that's exactly what I thought when I sow it

I sow the below statement but wasn't sure what you meant as obvious as it's now. I've now put there a 1 and it works just fine ;
"You haven't put the 1 (numeric number one) in J5 for GBP as I said in my Post #10 BOLD and Underlined."

And yes, in the screenshot column i is the currency (unique values) and field K is the conversion rate. I just didn't delete the original formula and tried on field L sorry for the confusion
 
Upvote 0
Yes, I got up to "Browse" but when I browse still can't see the xl2BB add in
 
Upvote 0
Hi,

This should work.

Put 1 (the number one) in J5 for GBP

Formula in K2, copied down as far as needed:

Excel Formula:
=IFERROR(G2/LOOKUP(2,1/SEARCH(H2,I$2:I$16),J$2:J$16),"")

I sow the below statement but wasn't sure what you meant as obvious as it's now. I've now put there a 1 and it works just fine ;
"You haven't put the 1 (numeric number one) in J5 for GBP as I said in my Post #10 BOLD and Underlined."

And yes, in the screenshot column i is the currency (unique values) and field K is the conversion rate. I just didn't delete the original formula and tried on field L sorry for the confusion

I said you needed to put 1 in J5 in my Post # 10.

So my formula is working for you now ?
 
Upvote 0
Yes, I got up to "Browse" but when I browse still can't see the xl2BB add in

You "Browse" to the folder where you had "Saved" the file during the download.
 
Upvote 0
Yes, I got up to "Browse" but when I browse still can't see the xl2BB add in
A few questions to help clarify.

1. When you clicked on the link to download the file xl2bb.zip, what folder (directory) did you save that to? If you are not sure, then repeat the download and be sure to note the location.
2. When you extracted the add-in file xl2bb.xlam from the compressed downloaded xl2bb.zip file, what folder (directory) did you save xl2bb.xlam to?
3. When you followed the installation instruction and got up to "Browse" did you browse to the folder in item #2 above where your saved copy of xl2bb.xlam is located?
 
Upvote 0
I said you needed to put 1 in J5 in my Post # 10.

So my formula is working for you now ?

A shorter version in M2 copied down:

Book2.xlsx
GHIJKLM
1Net priceActual currencyCurrency. 15 in totalPounds conversion to actual price currencyUSING = IFERROR(G2/IF(H2="CNY",J2,J3),"")My FormulaMy Shorter Formula
270,520.0USDCNY8.3853,424.2453424.2424253424.24242
313,800.0CNYUSD1.3210,454.551646.7780431646.778043
43,360.0VNDVND30,129.003,360.000.1115204620.111520462
53,672.0GBPGBP1.003,085.7136723672
615,000.0EUREUR1.191,303.2112605.0420212605.04202
71,800.0NOKNOK11.511,084.34156.3857515156.3857515
8700.0CADCAD1.66569.11421.686747421.686747
91,230.0CNYCHF1.231,000.00146.778043146.778043
10560.0JPYJPY157.0799.643.5652893613.565289361
115,523.0CNYPLN5.62982.74659.0692124659.0692124
12480.0CNYAUD1.78269.6657.2792362857.27923628
13120.0CNYSGD1.7967.0414.3198090714.31980907
14425.0USDDKK8.8815.86321.969697321.969697
154,300.0VNDMXN26.80346.490.1427196390.142719639
164,300.0VNDSEK12.41#DIV/0!0.1427196390.142719639
17495.5GBP#DIV/0!495.5495.5
18375.0GBP#DIV/0!375375
1970.0GBP#DIV/0!7070
20175.0GBP#DIV/0!175175
21950.0GBP#DIV/0!950950
22500.0GBP#DIV/0!500500
23177.0USD#DIV/0!134.0909091134.0909091
241,720.0CNY#DIV/0!205.2505967205.2505967
2514,208.0CNY#DIV/0!1695.4653941695.465394
Original
Cell Formulas
RangeFormula
K2:K25K2=G2/IF(H2="CNY",J2,J3)
L2:L25L2=IFERROR(G2/LOOKUP(2,1/SEARCH(H2,I$2:I$16),J$2:J$16),"")
M2:M25M2=IFERROR(G2/VLOOKUP(H2,I$2:J$16,2,0),"")
Named Ranges
NameRefers ToCells
Currency=Original!$I$2:$I$16L2:M25
 
Upvote 0

Forum statistics

Threads
1,216,057
Messages
6,128,523
Members
449,456
Latest member
SammMcCandless

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