Put this formula in D2, then copy down:
=IFERROR(INDEX($D$1:$D1, MATCH(A2&"-"&C2, INDEX($A$1:$A1&"-"&$C$1:$C1, 0), 0)), MAX($D$1:$D1)+1)
To remove the formulas
1) highlight the entire column D
2) Copy
3) Paste Special > Values
Put this formula in D2, then copy down:
=IFERROR(INDEX($D$1:$D1, MATCH(A2&"-"&C2, INDEX($A$1:$A1&"-"&$C$1:$C1, 0), 0)), MAX($D$1:$D1)+1)
To remove the formulas
1) highlight the entire column D
2) Copy
3) Paste Special > Values
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use theicon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
?None of us is as good as all of us? - Ray Kroc
?Actually, I *am* a rocket scientist.? - JB (little ones count!)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks