Sumif formual help

MrPink1986

Active Member
Joined
May 1, 2012
Messages
252
Hi

I have a list of data in range AE1:AE157 these are all currencies AED etc. I have a table with 4 groups in cells AN-AR G1,G2,G3,G4,G5 here lies differenct combos of currencies. In AT-AX I have a table of levels I want to apply to the range in AE in cells AF-AI.

What formula would work best to apply the level in the table group below in to table with data in yellow?
I have been advised that Sumifs would be best to use however I have never used this formula before

Any help greatly appreciated
S

[TABLE="width: 816"]
<COLGROUP><COL style="WIDTH: 48pt" span=17 width=64><TBODY>[TR]
[TD="width: 64, bgcolor: transparent"]Currency[/TD]
[TD="class: xl63, width: 64, bgcolor: transparent"]Vendor Tolerance Spot[/TD]
[TD="class: xl63, width: 64, bgcolor: transparent"]Vendor Tolerance Forward[/TD]
[TD="class: xl64, width: 64, bgcolor: transparent"]Day on Day Spot Tolerance[/TD]
[TD="class: xl64, width: 64, bgcolor: transparent"]Day on Day Forward Tolerance[/TD]
[TD="width: 64, bgcolor: transparent"][/TD]
[TD="class: xl65, width: 64, bgcolor: #a6a6a6"]G1[/TD]
[TD="class: xl65, width: 64, bgcolor: #a6a6a6"]G2[/TD]
[TD="class: xl65, width: 64, bgcolor: #a6a6a6"]G3[/TD]
[TD="class: xl65, width: 64, bgcolor: #a6a6a6"]G4[/TD]
[TD="class: xl65, width: 64, bgcolor: #a6a6a6"]G5[/TD]
[TD="width: 64, bgcolor: transparent"][/TD]
[TD="class: xl65, width: 64, bgcolor: #a6a6a6"]Reportable group[/TD]
[TD="class: xl66, width: 128, bgcolor: transparent, colspan: 2"]Vendor to Vendor tolerance (bps)[/TD]
[TD="class: xl66, width: 128, bgcolor: transparent, colspan: 2"]Day/Day tolerance (bps)[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: yellow"]AUD[/TD]
[TD="class: xl67, bgcolor: yellow"]data[/TD]
[TD="class: xl67, bgcolor: yellow"]data[/TD]
[TD="class: xl67, bgcolor: yellow"]data[/TD]
[TD="class: xl67, bgcolor: yellow"]data[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="class: xl68, width: 64, bgcolor: #a6a6a6"]EUR[/TD]
[TD="class: xl68, width: 64, bgcolor: #a6a6a6"]ZAR[/TD]
[TD="class: xl68, width: 64, bgcolor: #a6a6a6"]BRL[/TD]
[TD="class: xl68, width: 64, bgcolor: #a6a6a6"]KES[/TD]
[TD="class: xl68, width: 64, bgcolor: #a6a6a6"]AMD[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="class: xl69, bgcolor: transparent"] [/TD]
[TD="class: xl70, bgcolor: transparent"]Spot[/TD]
[TD="class: xl70, bgcolor: transparent"]Forward[/TD]
[TD="class: xl70, bgcolor: transparent"]Spot[/TD]
[TD="class: xl70, bgcolor: transparent"]Forward[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: yellow"]CAD[/TD]
[TD="class: xl67, bgcolor: yellow"]data[/TD]
[TD="class: xl67, bgcolor: yellow"]data[/TD]
[TD="class: xl67, bgcolor: yellow"]data[/TD]
[TD="class: xl67, bgcolor: yellow"]data[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="class: xl68, width: 64, bgcolor: #a6a6a6"]GBP[/TD]
[TD="class: xl68, width: 64, bgcolor: #a6a6a6"]MXN[/TD]
[TD="class: xl71, bgcolor: #c4bd97"]ARS[/TD]
[TD="class: xl68, width: 64, bgcolor: #a6a6a6"]GHS[/TD]
[TD="class: xl68, width: 64, bgcolor: #a6a6a6"]ERN[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="class: xl65, width: 64, bgcolor: #a6a6a6"]G1[/TD]
[TD="class: xl72, bgcolor: transparent"]25[/TD]
[TD="class: xl72, bgcolor: transparent"]50[/TD]
[TD="class: xl72, bgcolor: transparent"]100[/TD]
[TD="class: xl72, bgcolor: transparent"]200[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: yellow"]CHF[/TD]
[TD="class: xl67, bgcolor: yellow"]data[/TD]
[TD="class: xl67, bgcolor: yellow"]data[/TD]
[TD="class: xl67, bgcolor: yellow"]data[/TD]
[TD="class: xl67, bgcolor: yellow"]data[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="class: xl68, width: 64, bgcolor: #a6a6a6"]JPY[/TD]
[TD="class: xl68, width: 64, bgcolor: #a6a6a6"]KRW[/TD]
[TD="class: xl68, width: 64, bgcolor: #a6a6a6"]RON[/TD]
[TD="class: xl71, bgcolor: #c4bd97"]KZT[/TD]
[TD="class: xl68, width: 64, bgcolor: #a6a6a6"]GMD[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="class: xl65, width: 64, bgcolor: #a6a6a6"]G2[/TD]
[TD="class: xl72, bgcolor: transparent"]50[/TD]
[TD="class: xl72, bgcolor: transparent"]100[/TD]
[TD="class: xl72, bgcolor: transparent"]100[/TD]
[TD="class: xl72, bgcolor: transparent"]200[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: yellow"]GBP[/TD]
[TD="class: xl67, bgcolor: yellow"]data[/TD]
[TD="class: xl67, bgcolor: yellow"]data[/TD]
[TD="class: xl67, bgcolor: yellow"]data[/TD]
[TD="class: xl67, bgcolor: yellow"]data[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="class: xl68, width: 64, bgcolor: #a6a6a6"]CHF[/TD]
[TD="class: xl68, width: 64, bgcolor: #a6a6a6"]INR[/TD]
[TD="class: xl68, width: 64, bgcolor: #a6a6a6"]HRK[/TD]
[TD="class: xl68, width: 64, bgcolor: #a6a6a6"]PKR[/TD]
[TD="class: xl68, width: 64, bgcolor: #a6a6a6"]MWK[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="class: xl65, width: 64, bgcolor: #a6a6a6"]G3[/TD]
[TD="class: xl72, bgcolor: transparent"]50[/TD]
[TD="class: xl72, bgcolor: transparent"]200[/TD]
[TD="class: xl72, bgcolor: transparent"]100[/TD]
[TD="class: xl72, bgcolor: transparent"]200[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: yellow"]HKD[/TD]
[TD="class: xl67, bgcolor: yellow"]data[/TD]
[TD="class: xl67, bgcolor: yellow"]data[/TD]
[TD="class: xl67, bgcolor: yellow"]data[/TD]
[TD="class: xl67, bgcolor: yellow"]data[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="class: xl68, width: 64, bgcolor: #a6a6a6"]AUD[/TD]
[TD="class: xl71, bgcolor: #c4bd97"]RUB[/TD]
[TD="class: xl71, bgcolor: #c4bd97"]EGP[/TD]
[TD="class: xl68, width: 64, bgcolor: #a6a6a6"]VND[/TD]
[TD="class: xl68, width: 64, bgcolor: #a6a6a6"]MZN[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="class: xl65, width: 64, bgcolor: #a6a6a6"]G4[/TD]
[TD="class: xl72, bgcolor: transparent"]100[/TD]
[TD="class: xl72, bgcolor: transparent"]300[/TD]
[TD="class: xl72, bgcolor: transparent"]100[/TD]
[TD="class: xl72, bgcolor: transparent"]200[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: yellow"]JPY[/TD]
[TD="class: xl67, bgcolor: yellow"]data[/TD]
[TD="class: xl67, bgcolor: yellow"]data[/TD]
[TD="class: xl67, bgcolor: yellow"]data[/TD]
[TD="class: xl67, bgcolor: yellow"]data[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="class: xl68, width: 64, bgcolor: #a6a6a6"]CAD[/TD]
[TD="class: xl68, width: 64, bgcolor: #a6a6a6"]TRY[/TD]
[TD="class: xl68, width: 64, bgcolor: #a6a6a6"]MAD[/TD]
[TD="class: xl68, width: 64, bgcolor: #a6a6a6"]ALL[/TD]
[TD="class: xl68, width: 64, bgcolor: #a6a6a6"]ZWR[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="class: xl65, width: 64, bgcolor: #a6a6a6"]G5[/TD]
[TD="class: xl72, bgcolor: transparent"]N/A[/TD]
[TD="class: xl72, bgcolor: transparent"]N/A[/TD]
[TD="class: xl72, bgcolor: transparent"]N/A[/TD]
[TD="class: xl72, bgcolor: transparent"]N/A[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: yellow"]USD[/TD]
[TD="class: xl67, bgcolor: yellow"]data[/TD]
[TD="class: xl67, bgcolor: yellow"]data[/TD]
[TD="class: xl67, bgcolor: yellow"]data[/TD]
[TD="class: xl67, bgcolor: yellow"]data[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="class: xl68, width: 64, bgcolor: #a6a6a6"]HKD[/TD]
[TD="class: xl68, width: 64, bgcolor: #a6a6a6"]IDR[/TD]
[TD="class: xl68, width: 64, bgcolor: #a6a6a6"]TND[/TD]
[TD="class: xl68, width: 64, bgcolor: #a6a6a6"]BAM[/TD]
[TD="class: xl68, width: 64, bgcolor: #a6a6a6"]SLL[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
</TBODY>[/TABLE]
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Formula in AF2 copied down and across:


Excel 2010
AEAFAGAHAIAJAKALAMANAOAPAQARASATAU
1CurrencyVendor Tolerance SpotVendor Tolerance ForwardDay on Day Spot ToleranceDay on Day Forward ToleranceG1G2G3G4G5Reportable groupVendor to Vendor tolerance (bps)Day/Day tolerance (bps)
2AUD2550100200EURZARBRLKESAMDSpotForwardSpotForward
3CAD2550100200GBPMXNARSGHSERNG12550100200
4CHF2550100200JPYKRWRONKZTGMDG250100100200
5GBP2550100200CHFINRHRKPKRMWKG350200100200
6HKD2550100200AUDRUBEGPVNDMZNG4100300100200
7JPY2550100200CADTRYMADALLZWRG5N/AN/AN/AN/A
8USD#VALUE!#VALUE!#VALUE!#VALUE!HKDIDRTNDBAMSLL
Sheet1
Cell Formulas
RangeFormula
AF2=INDEX(AR$3:AR$7,MATCH(INDEX($AK$1:$AO$1,MAX(INDEX(($AK$2:$AO$8=$AE2)*(COLUMN($AK$1:$AO$1)-COLUMN($AK$1)+1),))),$AQ$3:$AQ$7,FALSE))
 
Upvote 0
So there is only 1 Currency per group (IE: EUR cant be in G1 AND G2)?...Also, do you simply wish to input the cell reference into the Yellow spots...so in the first column for CAD would you just want 25, 50, 100, 200? or is there more to it
 
Upvote 0
Hi Socoll111

Yes each group will only have reference to 1 currency there will be no corss over.

Well the yellow spots will be populated by the reportable group table - G1,G2,G3 etc have different levels (in the grey table in the middle) There are then 4 different secnarios to populate in the yellow spaces -all covered in the reportable group table
 
Upvote 0
Hi Andrew,

I have just logged on to the spreadsheet now - I am retunring an n/a value in the cells AF - AI
 
Upvote 0
You may need to adjust the range references to suit your setup. You can see that the formula is working from my sample.
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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