Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-05-2018, 12:03 PM
wheddingsjr wheddingsjr is offline How to label a row within a grouping Windows 7 64bit How to label a row within a grouping Office 2016
Advanced Beginner
How to label a row within a grouping
 
Join Date: Mar 2017
Posts: 76
wheddingsjr is on a distinguished road
Default How to label a row within a grouping


Hi all

I am working on a spreadsheet with 25k+ lines and need to identify whether a grouping has a certain "type" within the group (see attached). What I would like to do is go through the list and in column 'C' designate whether or not the type ' APP G' is in the group. If it isall the other lines within the group should have the letter 'Y' and if it doesnt the letter 'N'. Any assistance would be greatly appreciated.

Thanks
Attached Files
File Type: xlsx Book2.xlsx (16.9 KB, 13 views)
Reply With Quote
  #2  
Old 11-05-2018, 12:47 PM
jeffreybrown jeffreybrown is offline How to label a row within a grouping Windows Vista How to label a row within a grouping Office 2007
Expert
 
Join Date: Apr 2016
Posts: 673
jeffreybrown has a spectacular aura aboutjeffreybrown has a spectacular aura about
Default

Give this a try based on the sample you provided...

=IF(A1=A2,C1,IF(ISNUMBER(SEARCH("APP G",B2)),"Y","N"))
Reply With Quote
  #3  
Old 11-06-2018, 07:17 AM
wheddingsjr wheddingsjr is offline How to label a row within a grouping Windows 7 64bit How to label a row within a grouping Office 2016
Advanced Beginner
How to label a row within a grouping
 
Join Date: Mar 2017
Posts: 76
wheddingsjr is on a distinguished road
Default

Thanks JeffreyBrown..that worked perfectly!!!
Reply With Quote
  #4  
Old 11-06-2018, 03:44 PM
wheddingsjr wheddingsjr is offline How to label a row within a grouping Windows 7 64bit How to label a row within a grouping Office 2016
Advanced Beginner
How to label a row within a grouping
 
Join Date: Mar 2017
Posts: 76
wheddingsjr is on a distinguished road
Default

Hi JeffreyBrown...Looks like I spoke too soon. The formula did work for the example that I attached but as it went further down the spreadsheet it stopped working. It is pulling the 'Y' or "NO' from the previous set and sometimes its incorrect. Any suggestions?
Reply With Quote
  #5  
Old 11-06-2018, 04:19 PM
jeffreybrown jeffreybrown is offline How to label a row within a grouping Windows Vista How to label a row within a grouping Office 2007
Expert
 
Join Date: Apr 2016
Posts: 673
jeffreybrown has a spectacular aura aboutjeffreybrown has a spectacular aura about
Default

Are you saying it did not work with the example you posted or with different data?

If you're speaking of different data, I need to see the different data.
Reply With Quote
  #6  
Old 11-07-2018, 05:55 AM
ArviLaanemets ArviLaanemets is offline How to label a row within a grouping Windows 8 How to label a row within a grouping Office 2016
Expert
 
Join Date: May 2017
Posts: 873
ArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud of
Default

Into C2 enter the formula
Code:
=IF(COUNTIFS($A$2:$A$39,$A2,$B$2:$B$39,"APP G")>0,"Y","N")
and copy down. It returns "Y" whenever "APP G" is the type for group at least once.

Code:
=IF(COUNTIFS($A$2:$A2,$A2,$B$2:$B$2,"APP G")>0,"Y","N")
copied down returns "Y" starting from 1st occurrence of type "APP G" for given group (i.e. when at start the group number is not of type "APP G", but later will have this type, then the formula returns "Y" only for records startibg from the one of type "APP G").
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to label a row within a grouping Grouping by ID DarkDot Mail Merge 1 02-02-2018 01:16 PM
How to label a row within a grouping How to start a label mail merge at a specific label? DHKaplan Mail Merge 2 04-17-2014 07:33 PM
How to label a row within a grouping Pivot table grouping problem 2 tables need different grouping differentdrummer Excel 3 12-10-2013 01:19 AM
Userform label bordercolor not controllable if click label skarden Word VBA 1 09-29-2013 07:27 PM
Grouping alamorchgirl PowerPoint 0 07-08-2011 02:14 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:17 AM.


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