Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Use a help column with a formula and extract the first character
=LEFT(C1) copy down assume you put that in D2:D50 then use =SUM(COUNTIF(C2:C50,{"A","H","V"})) otherwise try =SUMPRODUCT(--(LEFT(C2:C50)={"A","H","V"})) -- Regards, Peo Sjoblom "soconfused" wrote in message ... I didn't pose the question right. I should have said I have a column with these variables and at the bottom, I want to sum all the A's, H's and V's. -- DMM "Toppers" wrote: in D1: =if(OR(left(C1)="A",left(C1)="H"),1,"") HTH "soconfused" wrote: I am trying to look at a cell and put a #1 in it: Example Column C = A-LA41-09-92256 I need a formula here to put a # 1 if the value is A- or H- Thanks in advance. DMM |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
"Peo Sjoblom" wrote...
.... otherwise try =SUMPRODUCT(--(LEFT(C2:C50)={"A","H","V"})) .... Or try =SUM(COUNTIF(C2:C50,{"A","H","V"}&"*")) or a slightly shorter array formula in which it's easier to change the letters sought, =COUNT(FIND(LEFT(A1:A30,1),"AHV")) |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
"Harlan Grove" wrote in message
... =COUNT(FIND(LEFT(A1:A30,1),"AHV")) That counts in empty cell in my XL97 because the FIND() returns 1 for empty cells. Is this a bug that was fixed in later versions? -- Regards, Sandy In Perth, the ancient capital of Scotland and the crowning place of kings Replace @mailinator.com with @tiscali.co.uk |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
"Sandy Mann" wrote...
"Harlan Grove" wrote in message =COUNT(FIND(LEFT(A1:A30,1),"AHV")) That counts in empty cell in my XL97 because the FIND() returns 1 for empty cells. Is this a bug that was fixed in later versions? .... Not fully bullet-proofed, eh? OK, =COUNT(FIND(LEFT(A1:A30&"#",1),"AHV")) You could provide these fixes yourself, you know? |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You could provide these fixes yourself, you know?
Actually I was too fixated on there being a bug in FIND() - there are none so blind as those that think that they already know! (That's not to say that I would have come up with it anyway.) -- Regards, Sandy In Perth, the ancient capital of Scotland and the crowning place of kings Replace @mailinator.com with @tiscali.co.uk |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
If cell has any character typed in it cell curser moves to next c | Excel Discussion (Misc queries) | |||
Removing last character in a cell | Excel Worksheet Functions | |||
more than 255 character in one cell | Excel Discussion (Misc queries) | |||
How do I get a cell to show the fifth character of another cell? | Excel Discussion (Misc queries) | |||
Need a ZERO as the first character in a cell | New Users to Excel |