Find a number from multiple range of numbers

spycein

Board Regular
Joined
Mar 8, 2014
Messages
135
Office Version
  1. 365
Platform
  1. Windows
Dear All,
I have two tables as mentioned below

Master Date Table No.1:-

Serial No.Quantity of CardsStart No.End No.Invoice No.
15001932011937001A
210001997012007001B
310002143012153001C
410002231012241001D
510002351012361001E
610002396012406001F
710002426012436001G
89902436112446001H
910002625012635001J
1010002752012762001P

<tbody>
</tbody>

















Search Result Table No.2

Card NoInvoice No
2144491C

<tbody>
</tbody>

I am looking for formula which would look up the card number in the entire range in table no.1 and return the invoice no.

Awaiting for awesome solutions.

Best Regards,

Shib
 
Last edited:

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
How about
=INDEX(Sheet1!E2:E11,MATCH(1,(A2>=Sheet1!C2:C11)*(A2<=Sheet1!D2:D11),0))

This is an array formula & needs to be confirmed with Ctrl Shift Enter, rather than just Enter
 
Upvote 0
It looks like the StartNumber column is sorted ascending. If so (with "Start No." in Sheet1!C1 and Card No" in Sheet2!A1)

=VLOOKUP(Sheet2!A2, Sheet1!$C$1:$E$100, 2)
 
Last edited:
Upvote 0
Thank you so much Fluff. Exactly what i needed.
Works like a charm.
Many Thanks.
 
Upvote 0
You're welcome & thanks for the feedback.

For future reference
While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules).
This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.

Cross posted https://www.excelforum.com/excel-general/1288431-find-a-number-from-multiple-range-of-numbers.html
 
Upvote 0

Forum statistics

Threads
1,213,530
Messages
6,114,162
Members
448,554
Latest member
Gleisner2

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