Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Match/Index adjustment

Posted on 2014-01-22
9
264 Views
Last Modified: 2014-01-22
Hi,

I have some formula searching for "FCC" in column D, it then matches the date in row 3 and whether an attendee has attended a meeting

=IF(INDEX(INDEX(INDEX($D$5:$D$61,MATCH(LEFT($C66,FIND(" ",$C66)-1),$A$5:$A$61,0)):$AU$61,0,MATCH(D$63,$D$3:$AU$3,0)+1),MATCH("FCC",INDEX($C$5:$C$61,MATCH(LEFT($C66,FIND(" ",$C66)-1),$A$5:$A$61,0)):$C$61,0))="Yes","Yes","No")

Can i adjust the formula so, the formula looks for "FCC" within the text

So if i had

"Global Head of FCC - MWBR" in column D, then it would return that as a match and indicate the record had attended the meeting

Currently it will only recognise FCC, if that is all the cell contains

Many thanks

Seamus
0
Comment
Question by:Seamus2626
  • 5
  • 3
9 Comments
 
LVL 50

Assisted Solution

by:Ingeborg Hawighorst
Ingeborg Hawighorst earned 200 total points
ID: 39799547
Hello,

with Match() you can use wildcards to find a partial match. So, your inner Match() function could be

[...]MATCH("*FCC*",INDEX($C$5:$C$61[...]

Open in new window


This will find the first cell in the range that CONTAINS the letters "FCC". Note that Match is not case sensitive, so it will find "fcc" as well as "FCC".

cheers, teylyn
0
 

Author Comment

by:Seamus2626
ID: 39799590
Hi Teylan, when i enter your wildcard it seems to mess up the other results, i have uploaded the ss

The relevant formula is in D66:Y69

Many thanks
FCC-RAM-Workstream-WG-Attendance.xlsx
0
 

Author Comment

by:Seamus2626
ID: 39799759
Teylan is there a way, my cell can contain the word "FCC" but display as "Global Head of FCC - RBWM"

This would be a workaround
0
Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

 
LVL 23

Expert Comment

by:NBVC
ID: 39799812
This is the formula I helped you with earlier....

As Teylyn mentioned, here is the formula use the * wildcard.  

I also noticed that you didn't revise the range limit from column AU to column BA (that is why you got #N/A errors)

In D66

=IF(INDEX(INDEX(INDEX($D$5:$D$61,MATCH(LEFT($C66,FIND(" ",$C66)-1),$A$5:$A$61,0)):$AU$61,0,MATCH(D$63,$D$3:$AU$3,0)+1),MATCH("*FCC*",INDEX($C$5:$C$61,MATCH(LEFT($C66,FIND(" ",$C66)-1),$A$5:$A$61,0)):$C$61,0))="Yes","Yes","No")
0
 

Author Comment

by:Seamus2626
ID: 39799916
Hi NBVC,

If you put your formula into cell D66 and copy down D67, it returns "No" for attendance, which is not true, the wildcard seems to affect the result

Without the wildcard, it returns the correct answer "Yes"

I dont understand what is happening. Your thoughts would be appreciated!

Thanks
0
 
LVL 23

Expert Comment

by:NBVC
ID: 39799938
For Jan 20th you will note that the Global Head of FCC for the "Attended" column for each LoB subgroup is either "No" or "n/a".  There are no "YES" (for Jan 20 Attended).  My formula returns No for No or N/a.
0
 

Author Comment

by:Seamus2626
ID: 39799970
Hi NBVC, theyre not mutually exclusive, as in, if either an FCC or a Global Head of FCC have attended, then return YES

Does that make sense?
0
 
LVL 23

Accepted Solution

by:
NBVC earned 300 total points
ID: 39800007
In that case, since you have multiple occurances of the substring "FCC" in each subgroup, then it is better to change the approach.

First we need to add a helper column (which you can hide if desired).  This will copy the LoB to each cell so that we can use COUNTIFS.

So, insert a column between columns A and B.

In this new B5 enter formula:

=IF(A5<>"",A5,B4)

copied down.  (you can hide this column B).

Now in E66 (the new Jan 20 summary column) enter:

=IF(COUNTIFS($B$5:$B$61,LEFT($D66,FIND(" ",$D66)-1),$D$5:$D$61,"*FCC*",INDEX($E$5:$BB$61,0,MATCH(E$63,$E$3:$BB$3,0)+1),"Yes")>0,"Yes","No")

copied down and across.
0
 

Author Closing Comment

by:Seamus2626
ID: 39800382
Perfect!
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question