Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default how to search vertically then count horizontally in excel

Hi I'm trying to work out how to FIND an instance of a name on the vertical
axis, then count any iinstances of a particular text on the horizontal. i.e.

Joe bloggs is in cell A1 on sheet 1 then on sheet 2 he is in cell A10.
Sheet 1 shows what days Joe worked and was on holiday, as does sheet 2.
Sheet 3 "the holiday planner" counts each holiday for joe using the formula
countif. which requires me to choose the correct cell range.

Can I use a formula to find the correct row "joe bloggs" then count the
number of holidays that joe had on seperate sheets?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default how to search vertically then count horizontally in excel

Is this what you want...

Count the H's for Joe:

...........A.....B.....C.....D
1......Sue....H....H........
2......Bob..........H.....H
3......Joe....H....H.....H
4......Tim..........H........

=COUNTIF(INDEX(B1:D4,MATCH("Joe",A1:A4,0),),"H")

--
Biff
Microsoft Excel MVP


"Novawitt" wrote in message
...
Hi I'm trying to work out how to FIND an instance of a name on the
vertical
axis, then count any iinstances of a particular text on the horizontal.
i.e.

Joe bloggs is in cell A1 on sheet 1 then on sheet 2 he is in cell A10.
Sheet 1 shows what days Joe worked and was on holiday, as does sheet 2.
Sheet 3 "the holiday planner" counts each holiday for joe using the
formula
countif. which requires me to choose the correct cell range.

Can I use a formula to find the correct row "joe bloggs" then count the
number of holidays that joe had on seperate sheets?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default how to search vertically then count horizontally in excel

Thank You Thank You Thank You. This has been doing my nut in. I will apply
it straight away.

"T. Valko" wrote:

Is this what you want...

Count the H's for Joe:

...........A.....B.....C.....D
1......Sue....H....H........
2......Bob..........H.....H
3......Joe....H....H.....H
4......Tim..........H........

=COUNTIF(INDEX(B1:D4,MATCH("Joe",A1:A4,0),),"H")

--
Biff
Microsoft Excel MVP


"Novawitt" wrote in message
...
Hi I'm trying to work out how to FIND an instance of a name on the
vertical
axis, then count any iinstances of a particular text on the horizontal.
i.e.

Joe bloggs is in cell A1 on sheet 1 then on sheet 2 he is in cell A10.
Sheet 1 shows what days Joe worked and was on holiday, as does sheet 2.
Sheet 3 "the holiday planner" counts each holiday for joe using the
formula
countif. which requires me to choose the correct cell range.

Can I use a formula to find the correct row "joe bloggs" then count the
number of holidays that joe had on seperate sheets?




Reply
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
Can I arrange tabs vertically in Excel (not horizontally)? LinLin Excel Discussion (Misc queries) 14 May 2nd 17 08:04 PM
How do I freeze panes horizontally and vertically at same time BW Excel Discussion (Misc queries) 15 October 16th 09 06:51 PM
aligning sheet tabs vertically, not horizontally Wilma Excel Worksheet Functions 1 March 10th 07 11:15 PM
How to create a floating bar chart vertically not horizontally... Cristina Charts and Charting in Excel 1 June 30th 06 09:45 PM
Move cells vertically to horizontally Abe Excel Discussion (Misc queries) 1 March 23rd 05 02:57 AM


All times are GMT +1. The time now is 05:50 PM.

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

About Us

"It's about Microsoft Excel"