If Error Match Formula problem

joshie78

New Member
Joined
Nov 25, 2014
Messages
9
Hi, below is my formula I have that is working for a spreadsheet. It is pulling data based on a match from a different worksheet and sending back the correct data.

Example, if I drop in a budget into excel on one sheet, then on another sheet put in a drop down bar that changes the month of the year it automatically pulls in my detail budget from the referenced month.

My problem is that in two separate categories I have the same description, but different GL.

GLDescriptionActualBudget
50460Locks & Keys50500
50350Locks & Keys50300

<tbody>
</tbody>

My problem is that my formula is referencing the name to match and not to GL, but when I change it to match the GL it doesn't work.

=IFERROR(INDEX('Budget Drop'!$B$4:$AZ$499,MATCH(B81,'Budget Drop'!$B$4:$B$499,0),MATCH($A$2,'Budget Drop'!$B$3:$AZ$3,0)),0)

So, because I have two separate GL's with the same name, it won't automatically drop in the budget amount because it doesn't know which one to pull.

I hope this makes sense and I hope you can help! :)
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Let A1:D3 house the sample you posted.

E1: 50460

F1:

=VLOOKUP($E1,A:D,MATCH("budget",INDEX(A:D,1,0),0)

would return the budget value.
No need for a hasty formula that has to be adapted.

The working alternative to the formula from Post #7 is as follows:

=IFERROR(VLOOKUP(A81,'Budget Drop'!$A$3:$AZ$499,MATCH($A$2,'Budget Drop'!$A$3:$AZ$3),0),0)

Same requirement: please make sure entries in A81 and in 'Budget Drop'!$A$4:$A$499 are of the same kind.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,456
Messages
6,130,743
Members
449,588
Latest member
accountant606

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