Trying use vlookup and countif

Dhurl

New Member
Joined
Sep 23, 2015
Messages
7
Hi

I'm looking for help on isolating and breaking down some figures

Customer Type Payment Credit Limit Credit Check Total Amount Difference
Bus test 1 Direct Debit 90 <=100 80 10
Business Cash 90 <=100 200 -110
Bus 3 Direct Debit 80 <=100 20 60
Bus test 1 Direct Debit 20 <=100 120 -100
Bus test 1 Cash 20 <=100 10 10
Business Direct Debit 40 <=100 45 -5

I want to isolate 'Bus test 1' and count the average 'total amount' and total 'total amounts'

Can anyone help with this please?
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
sorry table should be clearer

Customer Type __________ Payment ___________Credit Limit__________ Credit Check_______ Total Amount __________ Difference
Bus test 1______________ Direct Debit _____________90 __________________<=100 ____________80 __________________10
Business ______________ Cash__________________90 __________________<=100 ____________200__________________-110
Bus 3______________ ____Direct Debit _____________80 __________________<=100 ____________20 __________________60
Bus test 1______________ ____Direct Debit _________20 __________________<=100 ____________120 __________________-100
Bus test 1______________ Cash__________________20 __________________<=100 ____________10__________________10
Business______________ ____Direct Debit _________40 __________________<=100 ____________45 __________________-5
 
Upvote 0
try


Excel 2012
ABCDEF
1CustomerType PaymentCredit LimitCredit CheckTotal AmountDifference
2Bus test 1Direct Debit90<=1008010
3BusinessCash90<=100200-110
4Bus 3Direct Debit80<=1002060
5Bus test 1Direct Debit20<=100120-100
6Bus test 1Cash20<=1001010
7BusinessDirect Debit 40<=10045-5
8
9Bus test 1
10Total Amount210
11Average70
Sheet1
Cell Formulas
RangeFormula
B10=SUMIF(A2:A7,A9,E2:E7)
B11=AVERAGEIF(A2:A7,A9,E2:E7)
 
Upvote 0
Hi Dhurl,

Welcome to the forum.

Your original post isn't well laid out so deciding which column is which is difficult, but assuming I've interpreted it correctly then Customer is in Column A, and Total Amount is in column E. If this is correct then:

To calculate the Total Amount: =SUMIF(A2:A7,"Bus Test 1",E2:E7)
To calculate the average Total Amount: =AVERAGEIF(A2:A7,"Bus Test 1",E2:E7)

Hope this helps.

Regards
 
Upvote 0
Alan, how do you insert tables as you've done above?

Regards
 
Upvote 0
Hi AlanY

Thanks for the above.

I'm wondering how I can do this on a much bigger scale however.

So basically trying to find the above but isolate one customers numbers within a few thousand rows?

Thanks
 
Upvote 0
shouldn't be any problem by increase the ranges on Cols A and E to cover all the rows
 
Upvote 0

Forum statistics

Threads
1,215,327
Messages
6,124,290
Members
449,149
Latest member
mwdbActuary

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