Data Table

pwill

Active Member
Joined
Nov 22, 2015
Messages
406
Hi can anyone help with a formula or macro?

I have Data in columns A,B,C and have created a table E1:G10 where I want to find the last ranges used in Column B for each name in Column A using Column C as the Reference.

ie


ABCDEFGHIJ
1NameRangeRef
NameRefLast range used


211 - 55
1
511 - 15


316 - 105
11021 - 30



4111 - 155
11531 - 45


511 - 1010
256 - 10


6111 - 2010
21011 - 20


7121 - 3010
21516 - 30


811 - 1515
3511 - 15


9116 - 3015
31021 - 30


10131 - 4515
31531 - 45


1121 - 55






1226 - 105






1321 - 1010






14211 - 2010






1521 - 1515






16216 - 3015






1731 - 55






1836 - 105






19311 - 155






2031 - 1010






21311 - 2010






22321 - 3010






2331 - 1515






24316 - 3015






25331 - 4515






26









27









28










<colgroup><col style="width:48pt" width="64" span="5"> <col style="mso-width-source:userset;mso-width-alt:1280;width:26pt" width="35"> <col style="mso-width-source:userset;mso-width-alt:1974;width:41pt" width="54"> <col style="mso-width-source:userset;mso-width-alt:3401;width:70pt" width="93"> <col style="width:48pt" width="64" span="3"> </colgroup><tbody>
</tbody>

I am struggling to create a formula to put in column G to find the last range used using the name and ref in columns A - C

any help with this would be appreciated

regards
pwill
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Try this in G2 and drag down:

=LOOKUP(2,1/(($A$2:$A$30=E2)*($C$2:$C$30=F2)),$B$2:$B$30)

If your table is not in order like you have it shown, we can adjust it. Hope this helps.
 
Last edited:
Upvote 0
Try this in G2 and drag down:

=LOOKUP(2,1/(($A$2:$A$30=E2)*($C$2:$C$30=F2)),$B$2:$B$30)

If your table is not in order like you have it shown, we can adjust it. Hope this helps.



Hi Eric, I adjusted to meet my needs and works perfect, :)

Thank you, much appreciated.

pwill
 
Upvote 0

Forum statistics

Threads
1,214,944
Messages
6,122,387
Members
449,080
Latest member
Armadillos

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