vlookup function

KAYE04

New Member
Joined
Mar 14, 2019
Messages
21
Office Version
  1. 2016
Platform
  1. Windows
Is this possible on excel?
I have for example a file using vlook up function.

source file is like this
SI-1001 10
SI-1002 20
SI-1003 30
SI-1004 40
SI-1005 50
SI-1006 60


Now i need to look up this
SI-1001-1004 vlook up all making the result be 100, or sumif function may do
SI-1005-1006 vlook up all making the result be 110, or sumif function may do


thank you so much, if this is possible on the excel formula
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Hi Kaye,

Please try this.

Book1
AB
1SI-100110
2SI-100220
3SI-100330
4SI-100440
5SI-100550
6SI-100660
7
8SI-1001-1004100
Sheet1
Cell Formulas
RangeFormula
B8B8=SUMPRODUCT((B1:B6)*((A1:A6)>=CONCATENATE("SI-",MID(A8,4,4)))*((A1:A6)<=CONCATENATE("SI-",RIGHT(A8,4))))
 
Upvote 0
Solution
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
Hi Kaye,

Please try this.

Book1
AB
1SI-100110
2SI-100220
3SI-100330
4SI-100440
5SI-100550
6SI-100660
7
8SI-1001-1004100
Sheet1
Cell Formulas
RangeFormula
B8B8=SUMPRODUCT((B1:B6)*((A1:A6)>=CONCATENATE("SI-",MID(A8,4,4)))*((A1:A6)<=CONCATENATE("SI-",RIGHT(A8,4))))
THANKYOU SO MUCH

it works!!,
thankyou so much this is so much helpful.
the number & position of the parenthesis make sense. if you miss a single parenthesis the equation will be error.
thank you:)
 
Upvote 0
Thanks for updating your version details. (y)
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,175
Members
452,615
Latest member
bogeys2birdies

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