index match problem

rjmdc

Well-known Member
Joined
Apr 29, 2020
Messages
676
Office Version
  1. 365
Platform
  1. Windows
this is the formula
INDEX(tblBudgetAmounts[Amount], MATCH([@Parameter], tblBudgetAmounts[Service], 0), 0)*12
i have a column Type
is there a way to add that Type = "Original" to the above formula?
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Please upload a sample of your data and a mocked up solution. Do not post pictures as we cannot manipulate data in a picture. Use XL2BB.
 
Upvote 0
You need to highlight the entire range of data. You only have one cell.
 
Upvote 0
You need to highlight the entire range of data. You only have one cell.
Sample.xlsx
FGHIJKLMNOP
1Number FormatSpecial FunctionCheck TypeServiceNumberBudget TypeProviderAmount
2AgeRestrictionPRA1Budget79469
3AgeRestrictionMEDICAID FUNDED1Budget74753
4AgeRestrictionPROVIDER PURCHASED1Budget
5AgeRestrictionSTATE FUNDED1Budget15576
6AgeRestrictionCONTRACTED SERVICES1Budget
7AgeRestrictionTOTAL BUDGET SERVICES1Budget79469
8Self-Hired Comm Hab1Budget44928
9Self-Hired Respite1Budget
10Broker1Budget3000
11Broker Fee1Budget40
12IDGS Camp1Budget
13IDGS Coaching for Parents and Advocates1Budget
14IDGS Community Classes1Budget11725
15IDGS Direct Clinician Services1Budget
16IDGS Household Related Items-Services1Budget1500
17IDGS Interpretation Services1Budget
18IDGS Memberships1Budget1500
19IDGS Non-Direct Clinician Services1Budget
20IDGS Paid Neighbor1Budget9600
21IDGS Staffing Support1Budget
22IDGS Transition Program1Budget
23IDGS Transportation1Budget2500
24Live-in Caregiver1Budget
25DPP Comm Hab1Budget
26DPP Comm Hab2Budget
27DPP Comm Hab3Budget
28DPP Comm Hab4Budget
29DPP Day Habilitation1Budget
30DPP Day Habilitation2Budget
31Contracted Family Support Services1Budget
32DPP Pathway to Employment1Budget
33DPP Pre-Vocational Site Based1Budget
34DPP Pre-Vocational Community Based1Budget
35DPP Respite1Budget
36DPP Respite2Budget
37DPP Respite3Budget
38DPP Supported Employment 1Budget
39DPP Supported Employment 2Budget
40DPP Supported Employment 3Budget
41OTPS Advertisement Costs1Budget
42OTPS Board Stipend-Food Subsidy1Budget
43OTPS Clothing1Budget250
44OTPS Internet1Budget980
45OTPS Other Goods and Services Related to Health and Safety1Budget
46OTPS Other Goods and Services that Increase Independence1Budget
47OTPS Personal Use Transportation1Budget190
48OTPS Phone Service1Budget600
49OTPS Software Related to Disability1Budget
50OTPS Staff Activity Fees1Budget260
51OTPS Staff Training1Budget
52OTPS Utilities1Budget720
53Family Reimbursed Respite1Budget
54Housing1Budget873
55Administration1Budget175
56PRA1Amendment82649
57MEDICAID FUNDED1Amendment68303.95
58PROVIDER PURCHASED1Amendment3326
59STATE FUNDED1Amendment14304
60CONTRACTED SERVICES1Amendment
61TOTAL BUDGET SERVICES1Amendment75781.95
62Self-Hired Comm Hab1Amendment36115.2
63Self-Hired Respite1Amendment
64Broker1Amendment3288.75
65Broker Fee1Amendment43.85
66IDGS Camp1Amendment
67IDGS Coaching for Parents and Advocates1Amendment
68IDGS Community Classes1Amendment16000
69IDGS Direct Clinician Services1Amendment
70IDGS Household Related Items-Services1Amendment1500
71IDGS Interpretation Services1Amendment
72IDGS Memberships1Amendment800
73IDGS Non-Direct Clinician Services1Amendment
74IDGS Paid Neighbor1Amendment9600
75IDGS Staffing Support1Amendment
76IDGS Transition Program1Amendment
77IDGS Transportation1Amendment1000
78Live-in Caregiver1Amendment
79DPP Comm Hab1Amendment
80DPP Comm Hab2Amendment
81DPP Comm Hab3Amendment
82DPP Comm Hab4Amendment
83DPP Day Habilitation1Amendment
84DPP Day Habilitation2Amendment
85Contracted Family Support Services1Amendment
86DPP Pathway to Employment1Amendment
87DPP Pre-Vocational Site Based1Amendment
88DPP Pre-Vocational Community Based1Amendment
89DPP Respite1Amendment
90DPP Respite2Amendment
91DPP Respite3Amendment
92DPP Supported Employment 1AmendmentAHRC3326
93DPP Supported Employment 2Amendment
94DPP Supported Employment 3Amendment
95OTPS Advertisement Costs1Amendment
96OTPS Board Stipend-Food Subsidy1Amendment
97OTPS Clothing1Amendment250
98OTPS Internet1Amendment980
99OTPS Other Goods and Services Related to Health and Safety1Amendment
100OTPS Other Goods and Services that Increase Independence1Amendment
101OTPS Personal Use Transportation1Amendment450
102OTPS Phone Service1Amendment600
103OTPS Software Related to Disability1Amendment
104OTPS Staff Activity Fees1Amendment
105OTPS Staff Training1Amendment
106OTPS Utilities1Amendment720
107Family Reimbursed Respite1Amendment
108Housing1Amendment942
109Administration1Amendment
General
Cells with Data Validation
CellAllowCriteria
G2:G8ListSum
 
Upvote 0
this is the formula
INDEX(tblBudgetAmounts[Amount], MATCH([@Parameter], tblBudgetAmounts[Service], 0), 0)*12
i have a column Type
is there a way to add that Type = "Original" to the above formula?
Assuming your Return Value table has a columns called Parameter and by Type you mean Budget Type, either of the below should work.
Note: Budget Type does not have any values for Original only Budget and Amendment, so I have used Amendment

Excel Formula:
=INDEX(tblBudgetAmounts[Amount], MATCH(1, (tblBudgetAmounts[Service]=[@Parameter]) * (tblBudgetAmounts[Budget Type] = "Amendment"), 0), 0)*12

OR

Excel Formula:
=XLOOKUP(1,(tblBudgetAmounts[Service]=[@Parameter])*(tblBudgetAmounts[Budget Type]="Amendment"),tblBudgetAmounts[Amount],0)*12
 
Upvote 0
Solution
i needed to use the index matxh version
it works
thanks so much
 
Upvote 0

Forum statistics

Threads
1,216,074
Messages
6,128,652
Members
449,462
Latest member
Chislobog

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