Formula issue

Alisya

Well-known Member
Joined
Nov 27, 2008
Messages
532
Hi, i am using an array formula but I seem to be getting incorrect result, for example for Citicash I should be getting $96,736.11, but the formula is returning $96,738.11 I cant spot what I have done wrong. Could someone please double check for me.

{=SUM(IF(ISNUMBER(MATCH($G$2:$G$10,IF($L$2:$L$8=$A3,$K$2:$K$8),0)),IF($I$2:$I$10>=B$1,IF($I$2:$I$10<=B$2,H2:H10,1/SUMIF($N$2:$N$18,$J$2:$J$10,$O$2:$O$18)))))}

Sheet3

<TABLE style="BACKGROUND-COLOR: #ffffff; PADDING-LEFT: 2pt; PADDING-RIGHT: 2pt; FONT-FAMILY: Arial,Arial; FONT-SIZE: 10pt" border=1 cellSpacing=0 cellPadding=0><COLGROUP><COL style="WIDTH: 30px; FONT-WEIGHT: bold"><COL style="WIDTH: 79px"><COL style="WIDTH: 72px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"><COL style="WIDTH: 74px"><COL style="WIDTH: 63px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"><COL style="WIDTH: 74px"><COL style="WIDTH: 79px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"></COLGROUP><TBODY><TR style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt; FONT-WEIGHT: bold"><TD> </TD><TD>A</TD><TD>B</TD><TD>C</TD><TD>D</TD><TD>E</TD><TD>F</TD><TD>G</TD><TD>H</TD><TD>I</TD><TD>J</TD><TD>K</TD><TD>L</TD><TD>M</TD><TD>N</TD><TD>O</TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">1</TD><TD> </TD><TD style="TEXT-ALIGN: right">2</TD><TD style="TEXT-ALIGN: right">30</TD><TD> </TD><TD> </TD><TD> </TD><TD>Rec</TD><TD>Amount</TD><TD>Age</TD><TD>CCY</TD><TD>Mapping</TD><TD> </TD><TD> </TD><TD style="TEXT-ALIGN: center">CCY</TD><TD style="TEXT-ALIGN: center">FX</TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">2</TD><TD> </TD><TD style="TEXT-ALIGN: right">29</TD><TD style="TEXT-ALIGN: right">59</TD><TD> </TD><TD> </TD><TD> </TD><TD>CASH JP1</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">32.32</TD><TD style="TEXT-ALIGN: right">15</TD><TD>AUD</TD><TD>CASH JP1</TD><TD>CITICASH</TD><TD> </TD><TD>AUD</TD><TD style="TEXT-ALIGN: right">1</TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">3</TD><TD>CITICASH</TD><TD style="TEXT-ALIGN: right">96,738.11 </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD>CASH JP2</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">0.32</TD><TD style="TEXT-ALIGN: right">25</TD><TD>AUD</TD><TD>CASH JP2</TD><TD>CITICASH</TD><TD> </TD><TD>CAD</TD><TD style="TEXT-ALIGN: right">0.94</TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">4</TD><TD>SUSPENSE</TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD>CASH JP3</TD><TD style="TEXT-ALIGN: right">154.23</TD><TD style="TEXT-ALIGN: right">40</TD><TD>AUD</TD><TD>CASH JP3</TD><TD>CITICASH</TD><TD> </TD><TD>CHF</TD><TD style="TEXT-ALIGN: right">0.89</TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">5</TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD>CASH JP4</TD><TD style="TEXT-ALIGN: right">9564.23</TD><TD style="TEXT-ALIGN: right">32</TD><TD>AUD</TD><TD>CASH JP4</TD><TD>CITICASH</TD><TD> </TD><TD>DKK</TD><TD style="TEXT-ALIGN: right">4.39</TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">6</TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD>CASH JP5</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">95412.36</TD><TD style="TEXT-ALIGN: right">27</TD><TD>AUD</TD><TD>CASH JP5</TD><TD>CITICASH</TD><TD> </TD><TD>EUR</TD><TD style="TEXT-ALIGN: right">0.59</TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">7</TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD>CASH JP6</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">1254.36</TD><TD style="TEXT-ALIGN: right">11</TD><TD>AUD</TD><TD>CASH JP6</TD><TD>CITICASH</TD><TD> </TD><TD>GBP</TD><TD style="TEXT-ALIGN: right">0.54</TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">8</TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD>CASH DES</TD><TD style="TEXT-ALIGN: right">456.12</TD><TD style="TEXT-ALIGN: right">4</TD><TD>AUD</TD><TD>CASH DES</TD><TD>SUSPENSE</TD><TD> </TD><TD>HKD</TD><TD style="TEXT-ALIGN: right">6.71</TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">9</TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD>CASH JP5</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">36.75</TD><TD style="TEXT-ALIGN: right">5</TD><TD>AUD</TD><TD> </TD><TD> </TD><TD> </TD><TD>HUF</TD><TD style="TEXT-ALIGN: right">158.7</TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">10</TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD>IDR</TD><TD style="TEXT-ALIGN: right">8359.78</TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">11</TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD>ILS</TD><TD style="TEXT-ALIGN: right">3.26</TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">12</TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD>JPY</TD><TD style="TEXT-ALIGN: right">77.87</TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">13</TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD>KRW</TD><TD style="TEXT-ALIGN: right">1026.98</TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">14</TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD>MXN</TD><TD style="TEXT-ALIGN: right">11.7</TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">15</TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD>MYR</TD><TD style="TEXT-ALIGN: right">3.01</TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">16</TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD>NOK</TD><TD style="TEXT-ALIGN: right">5.02</TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">17</TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD>NZD</TD><TD style="TEXT-ALIGN: right">1.21</TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">18</TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD>PHP</TD><TD style="TEXT-ALIGN: right">40.97</TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">19</TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD></TR></TBODY></TABLE>
<TABLE style="BORDER-BOTTOM-STYLE: groove; BORDER-BOTTOM-COLOR: #00ff00; BORDER-RIGHT-STYLE: groove; BACKGROUND-COLOR: #fffcf9; BORDER-TOP-COLOR: #00ff00; FONT-FAMILY: Arial; BORDER-TOP-STYLE: groove; COLOR: #000000; BORDER-RIGHT-COLOR: #00ff00; FONT-SIZE: 10pt; BORDER-LEFT-STYLE: groove; BORDER-LEFT-COLOR: #00ff00"><TBODY><TR><TD>Spreadsheet Formulas</TD></TR><TR><TD><TABLE style="FONT-FAMILY: Arial; FONT-SIZE: 9pt" border=1 cellSpacing=0 cellPadding=2><TBODY><TR style="BACKGROUND-COLOR: #cacaca; FONT-SIZE: 10pt"><TD>Cell</TD><TD>Formula</TD></TR><TR><TD>B3</TD><TD>{=SUM(IF(ISNUMBER(MATCH($G$2:$G$10,IF($L$2:$L$8=$A3,$K$2:$K$8),0)),IF($I$2:$I$10>=B$1,IF($I$2:$I$10<=B$2,H2:H10,1/SUMIF($N$2:$N$18,$J$2:$J$10,$O$2:$O$18)))))}</TD></TR></TBODY></TABLE></TD></TR><TR><TD>Formula Array:
Produce enclosing
{ } by entering
formula with CTRL+SHIFT+ENTER!
</TD></TR></TBODY></TABLE>

Excel tables to the web >> http://www.excel-jeanie-html.de/index.php?f=1" target="_blank"> Excel Jeanie HTML 4
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Without really looking at your formula, I am going to suggest this may be a Rounding/Precision issue. Are you using "Precison as Displayed"? A google search should give you some insight into this.

lenze
 
Upvote 0
Without really looking at your formula, I am going to suggest this may be a Rounding/Precision issue. Are you using "Precison as Displayed"? A google search should give you some insight into this.

lenze

Nope, nothing to do with rounding, i found what the issue was its to do with 1

Code:
{=SUM(IF(ISNUMBER(MATCH($G$2:$G$10,IF($L$2:$L$8=$A3,$K$2:$K$8),0)),
IF($I$2:$I$10>=B$1,IF($I$2:$I$10<=B$2,H2:H10,[B][COLOR=red]1[/COLOR][/B]/
SUMIF($N$2:$N$18,$J$2:$J$10,$O$2:$O$18)))))}
 
Upvote 0

Forum statistics

Threads
1,223,237
Messages
6,170,928
Members
452,366
Latest member
TePunaBloke

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