Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I am using an array funtion to sum a numbers followed by a letter. Example
3H,4H, etc..., The formula looks like this: =SUM(IF(RIGHT(C4:AD4,1)="H",--LEFT(C4:AD4,LEN(C4:AD4)-1))) How can I add numbers followed by two letters. Example 3CT, 4CT, etc... What do I have to do different in the function. Thanks |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Always CT?
=SUM(IF(RIGHT(C4:AD4,2)="ct",--LEFT(C4:AD4,LEN(C4:AD4)-2))) Notice that the =right() was changed to look at 2 characters and the len() now had 2 subtracted from it. JP wrote: I am using an array funtion to sum a numbers followed by a letter. Example 3H,4H, etc..., The formula looks like this: =SUM(IF(RIGHT(C4:AD4,1)="H",--LEFT(C4:AD4,LEN(C4:AD4)-1))) How can I add numbers followed by two letters. Example 3CT, 4CT, etc... What do I have to do different in the function. Thanks -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I am getting a #VALUE error with this. Whta could be going on?
Thanks "Dave Peterson" wrote: Always CT? =SUM(IF(RIGHT(C4:AD4,2)="ct",--LEFT(C4:AD4,LEN(C4:AD4)-2))) Notice that the =right() was changed to look at 2 characters and the len() now had 2 subtracted from it. JP wrote: I am using an array funtion to sum a numbers followed by a letter. Example 3H,4H, etc..., The formula looks like this: =SUM(IF(RIGHT(C4:AD4,1)="H",--LEFT(C4:AD4,LEN(C4:AD4)-1))) How can I add numbers followed by two letters. Example 3CT, 4CT, etc... What do I have to do different in the function. Thanks -- Dave Peterson |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I figured it out. I one of the cells there was only text causing the error.
Thanks for the help. "JP" wrote: I am getting a #VALUE error with this. Whta could be going on? Thanks "Dave Peterson" wrote: Always CT? =SUM(IF(RIGHT(C4:AD4,2)="ct",--LEFT(C4:AD4,LEN(C4:AD4)-2))) Notice that the =right() was changed to look at 2 characters and the len() now had 2 subtracted from it. JP wrote: I am using an array funtion to sum a numbers followed by a letter. Example 3H,4H, etc..., The formula looks like this: =SUM(IF(RIGHT(C4:AD4,1)="H",--LEFT(C4:AD4,LEN(C4:AD4)-1))) How can I add numbers followed by two letters. Example 3CT, 4CT, etc... What do I have to do different in the function. Thanks -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Array Formula Not Working with Range with Formulas | Excel Discussion (Misc queries) | |||
Array formula returning wrong results | Excel Discussion (Misc queries) | |||
referencing the value of a cell containing an array formula | Excel Worksheet Functions | |||
Formula checking multiple worksheets | Excel Worksheet Functions | |||
Match / Vlookup within an Array formula | Excel Discussion (Misc queries) |