Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-20-2017, 01:54 AM
Jelmer Jelmer is offline Search for "H" in row, return 'Yes' or 'No' Windows Vista Search for "H" in row, return 'Yes' or 'No' Office 2013
Novice
Search for "H" in row, return 'Yes' or 'No'
 
Join Date: May 2017
Location: Netherlands/UK
Posts: 15
Jelmer is on a distinguished road
Default Search for "H" in row, return 'Yes' or 'No'

Hi,

I made a personnel tracker with on the left side column the names, on the first row the dates and then I fill in for everyday someone is working a 'W' and when they have a holiday I fill in an 'H'. The thing I want to do is to show only the rows that have one ore more 'H' behind the name and leave out the ones that don't have a planned holiday.

I tried adding an extra column with for each row a formula that returns 'Yes' when there is a row with an 'H' in it and 'No' if it doesn't so I can then add a filter to that column and show only the people with planned holidays. Sounds pretty easy but I can't figure out what formula I should use. I played with the LOOKUP function but so far no success...

Can anyone help me out here?
Reply With Quote
  #2  
Old 06-20-2017, 02:10 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Search for "H" in row, return 'Yes' or 'No' Windows 7 64bit Search for "H" in row, return 'Yes' or 'No' Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,918
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Hi and welcome
try something like =IF(COUNTIF(B$2:X$2,"H"),"Yes","No")
Adapt range as needed and pull down
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 06-20-2017, 02:18 AM
Jelmer Jelmer is offline Search for "H" in row, return 'Yes' or 'No' Windows Vista Search for "H" in row, return 'Yes' or 'No' Office 2013
Novice
Search for "H" in row, return 'Yes' or 'No'
 
Join Date: May 2017
Location: Netherlands/UK
Posts: 15
Jelmer is on a distinguished road
Default

Quote:
Originally Posted by Pecoflyer View Post
Hi and welcome
try something like =IF(COUNTIF(B$2:X$2,"H"),"Yes","No")
Adapt range as needed and pull down
Thank you for your quick reply. I tried this but it returns 'No' for rows without an "H" but not a 'Yes' for rows that do contain an "H".

Some more info: I had to replace the , with ; and I'm currently working in excel 2010.
Reply With Quote
  #4  
Old 06-20-2017, 04:49 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Search for "H" in row, return 'Yes' or 'No' Windows 7 64bit Search for "H" in row, return 'Yes' or 'No' Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,918
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Perhaps post a sample sheet (no pics please)

PS if you do not indicate your location, it is difficult to use the correct regional settings
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #5  
Old 06-20-2017, 05:20 AM
Jelmer Jelmer is offline Search for "H" in row, return 'Yes' or 'No' Windows Vista Search for "H" in row, return 'Yes' or 'No' Office 2010 64bit
Novice
Search for "H" in row, return 'Yes' or 'No'
 
Join Date: May 2017
Location: Netherlands/UK
Posts: 15
Jelmer is on a distinguished road
Default

Could you tell me how to do that?
Reply With Quote
  #6  
Old 06-20-2017, 11:50 PM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Search for "H" in row, return 'Yes' or 'No' Windows 7 64bit Search for "H" in row, return 'Yes' or 'No' Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,918
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

My mistake try
=IF(COUNTIF($IA10:$xfd10;"H");"Yes";"No")
and pull down
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #7  
Old 06-21-2017, 12:41 AM
Jelmer Jelmer is offline Search for "H" in row, return 'Yes' or 'No' Windows Vista Search for "H" in row, return 'Yes' or 'No' Office 2010 64bit
Novice
Search for "H" in row, return 'Yes' or 'No'
 
Join Date: May 2017
Location: Netherlands/UK
Posts: 15
Jelmer is on a distinguished road
Default

Thank you! That solved the problem!
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Search for "H" in row, return 'Yes' or 'No' Don't want if statement to return "false" mbesspiata Excel 2 06-06-2016 02:29 PM
disable or constantly clear "recent picks" from onenote search azhumvee OneNote 0 08-12-2014 09:06 PM
How to Turn Off Message "Search from the beginning of a document" in a Macro sleake Word 10 10-15-2013 03:43 PM
Search for "H" in row, return 'Yes' or 'No' How to choose a "List" for certain "Heading" from "Modify" tool? Jamal NUMAN Word 2 07-03-2011 03:11 AM
Instant Search's "Display search results as I type when possible" with Exchange lwc Outlook 0 06-01-2011 01:56 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:18 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft