Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have an imported text file (roughly 30,000lines). What I need is to see if
a column has the value "SAUR" and if so, count the columns with "S" in the next 7 rows below it and 2 columns to the right. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
Try, =IF(RC[-3]="SAUR",COUNTIF(R[1]C[-1]:R[7]C[-1],"S"),0) I set this up with R1C1 ref style on & put my formula in column 4. My dummy data was in col 1 (SAUR, <SAUR) & column 3 (S & <S). You will need to tweak if you can't put the formula there. Regards, Chris. -- Chris Marlow MCSD.NET, Microsoft Office XP Master "Lost in Microbiology" wrote: I have an imported text file (roughly 30,000lines). What I need is to see if a column has the value "SAUR" and if so, count the columns with "S" in the next 7 rows below it and 2 columns to the right. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Chris,
When I paste this into the worksheet, nothing happens. Am I doing something wrong? Do I run a macro and insert there? Thanks "Chris Marlow" wrote: Hi, Try, =IF(RC[-3]="SAUR",COUNTIF(R[1]C[-1]:R[7]C[-1],"S"),0) I set this up with R1C1 ref style on & put my formula in column 4. My dummy data was in col 1 (SAUR, <SAUR) & column 3 (S & <S). You will need to tweak if you can't put the formula there. Regards, Chris. -- Chris Marlow MCSD.NET, Microsoft Office XP Master "Lost in Microbiology" wrote: I have an imported text file (roughly 30,000lines). What I need is to see if a column has the value "SAUR" and if so, count the columns with "S" in the next 7 rows below it and 2 columns to the right. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Cell Count | New Users to Excel | |||
Count on cell for each time it is changed | Excel Discussion (Misc queries) | |||
how to count the number of text frequencies and copy to other cell | Excel Worksheet Functions | |||
count cell if value present in every other cell + criteria | Excel Worksheet Functions | |||
Return Count for LAST NonBlank Cell in each Row | Excel Worksheet Functions |