Forgot to add drag down forula to the bottom of your list
"Ron@Buy" wrote:
> Peter
> VLOOKUP is a possible solution:
> Set up a looup table somewhere on your worksheet: say S1 to S5, enter the
> first three digits of your item nimber. Then in cells T1 to T5 set up the
> corresponding department name.
> Now in column D same row as the first item number enter (assuming row 2):
> =IF(C2="","",VLOOKUP(LEFT(C2,3),S$1:T$5,2,0))
> This should give you what you require. Adjust column and row reference to
> suit.
> To allow for your master list of item numbers and department name to
> increase Increase the number after the T in the formula.
> Hope this helps
>
> "Peter Gonzalez" wrote:
>
> > I'm trying to create a formula where it recognizes the first three digits of
> > an item number at the same time entering the department name in the cell next
> > to it. So let's say the item number R33569 for dept. WRP, I would only need
> > it to recognize the R33 while entering WRP in the column next to the item
> > number.
> >
> > This is what I got on my work sheet
> > Column C Item Number
> > R33569
> > R33456
> > R33447
> >
> > In the column to the right or left doesn't matter which I need to say the
> > dept. name. So how can i do that without having go through the hundreds of
> > partnumbers that I have. let me know if you need more explanation.
> > I appreciate the help
|