LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Chris Price
 
Posts: n/a
Default Use CountIF with conditional formulas

I have a list of names (it's an Exchange GAL extract), and I'm trying to
count all the names that fall between a range of letters, i.e. 'A-F', 'G-L',
'M-R', S-Z'.

Right now, I've added a column to the extract page that uses a conditional
IF to populate some text into the cell that reflects which range the First
letter of the Lastname falls in. This is then filled down the column until I
hit the last populated row:

=IF(LEFT('sheet2'!D2,1)<='sheet1'!$C$5, "SG1",
IF(AND(LEFT('sheet2'!D2,1)='sheet1'!$A$6,LEFT('sh eet2'!D2,1)<='sheet1'!$C$6), "SG2" ...(and so on)

I then do a set of simple =countif('sheet2'!A:A,"SG1") to get the totals.
This does work, but is dependant on the manual process of dragging the IF
formula down the set of records.

There has to be an easier way to bypass the manual IF step and do the
CountIF across any list of rows, but I can't figure out how to get the
criteria in properly.

Thanks in advance,

Chris.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Does a highlight row comand exist for Excel conditional formulas? Jeff Excel Worksheet Functions 2 July 7th 05 02:55 PM
how can i use colors in conditional formulas if i want the result. kshaheen Excel Discussion (Misc queries) 1 March 22nd 05 10:09 AM
Countif and Conditional Formatting Ramiro Espinoza Excel Worksheet Functions 1 February 2nd 05 05:21 PM
Conditional Formatting using result of Cell Formulas Dave Peterson Excel Discussion (Misc queries) 0 January 26th 05 02:17 AM
combining countif formulas Liz G Excel Worksheet Functions 3 November 1st 04 09:34 PM


All times are GMT +1. The time now is 03:00 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"