Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Strange title, but an equally strange problem.
I have a named range, Master_Fees, that is set out as follows: Quantity code: 6 characters max. It may be less than 6, but not less than 5. Formatted as 'General'; Fee: Numeric, formatted to 2 decimal places; Formatted fee: This if formatted into 6 digits, with leading '0' characters as appropriate. For example, if Fee was 6.95, this field would hold "000695". This is presently calculated as =(TEXT(D3*100,"000000")) I have another column, outwith the named range above, that contains the following: Treatment 1...Treatment 10: Each of the cells under these headings will contain the following- A five or six character code, that is one of the 'Quantity Codes' listed in the above range; Two characters, as a combination of 'Y' & 'N', which are always present; A maximum of 32, 2 digit numbers; So what do I want to do? For each entry under 'Treatment', I want to lookup the value that represents the first 6 characters / digits of the 'Treatment', in the named range, and return the fee and / or the formatted fee. I then want to total up each of the Fee values that have been returned, format it as the formatted fee value, and store it in a cell. Simple? I'm banging my head here, as I can't get it. I have, as an example: Named range: 102101 39.30 003930 102102 39.30 003930 102103 39.30 003930 140109 77.85 007785 140110 86.50 008650 140111 95.15 009515 Treatment 1: 102101NN253685 Treatment 2: 140111YN1236524586842341424641 Treatment 3: 102103NN286512 In this case, the result would be: Treatment 1: Fee=39.30 Formatted Fee=003930 Treatment 2: Fee=95.15 Formatted Fee=009515 Treatment 3: Fee=39.30 Formatted Fee=003930 Total charge: Fee=173.75 Formatted Fee=017375 How do I do it? Can anyone help? Duncan |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Help with Time? trying to vlookup a NOW() value in a text table... | Excel Discussion (Misc queries) | |||
concatenate numerics and text | Excel Worksheet Functions | |||
Ignore text but not numerics on SUM() function | Excel Worksheet Functions | |||
Formula with text and numerics | Excel Worksheet Functions | |||
Cells formated as custom numerics to text box error. | Excel Programming |