Lookup formula

buddydubbo

New Member
Joined
Nov 1, 2011
Messages
7
[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"]job[/TD]
[TD="align: center"]task[/TD]
[TD="align: center"]charge[/TD]
[TD][/TD]
[TD="align: center"]codes[/TD]
[TD="align: center"]prices[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]N34[/TD]
[TD]cable mod plate[/TD]
[TD="align: center"]125[/TD]
[TD][/TD]
[TD]cable[/TD]
[TD]40[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]N35[/TD]
[TD]cable socket mod[/TD]
[TD][/TD]
[TD][/TD]
[TD]connect[/TD]
[TD]10[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]N38[/TD]
[TD]socket connect mod[/TD]
[TD][/TD]
[TD][/TD]
[TD]plate[/TD]
[TD]15[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]N44[/TD]
[TD]cable plate socket[/TD]
[TD][/TD]
[TD][/TD]
[TD]socket[/TD]
[TD]25[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]mod[/TD]
[TD]70[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

hi i new to advance formulas and i need a formula to look at the code words in the task column
and to sum them as a total from the prices next to the codes in the charge column.

so C2 will look at B2 and check if any words from range E2:E6 appear and add the sum of there corresponding price in range F2:F6 .

many thanks in advance.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Re: Help with a lookup formula

Your request is a little vague.

This would be easier if the entries in column B can be separated into different columns - is that an option ?

Failing that, will there only ever be 3 entries in each cell in column B ?
Will they always be separated by a single space character ?
Will you ever get entries which look like two separate values and contain a single space character but need to be treated as a single value, such as "long cable" ?
 
Upvote 0
Re: Help with a lookup formula

i am filling out column B to auto total a price in column C according to the code word and corresponding price

so if i type in B "mod" and "plate" it will auto total 85 in C column

only the code words in the list in column D will be type in column B that can have a space to seperate or a dash or comma what ever works reading like this : mod plate socket or mod,plate,socket
 
Last edited:
Upvote 0
Re: Help with a lookup formula

Try this

Excel Workbook
ABCDEF
1jobtaskchargecodesprices
2N34cable mod plate125cable40
3N35cable socket mod135connect10
4N38socket connect mod105plate15
5N44cable plate socket80socket25
6N45mod70mod70
7N46connect10
8N47mod, connet70
9N48plate-connect25
Sheet



Array formulas
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself
 
Upvote 0
Re: Help with a lookup formula

I'm glad to help you. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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