+ Reply to Thread
Results 1 to 10 of 10

Search a cell for a keyword & return a value

  1. #1
    Registered User
    Join Date
    05-24-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    30

    Question Search a cell for a keyword & return a value

    I am attaching an excel file in which I want to calculate % of missing, % of incorrect and total % of CDE (critical data elements) for my projects.


    In the "Totals (May 2019)" sheet for the columns "CDE Missing" and "CDE Incorrect", I want a formula which will calculate only those missing or incorrect entries which are highlighted in yellow (highlighted in yellow are my defined critical data elements). For #missing and #incorrect columns I already have a formula ready which is in this excel. Please help me with this.

    Thank you all.
    Danish
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 11-19-2019 at 07:22 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: I need help with formula for calculating Critical Data elements for my projects

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,734

    Re: I need help with formula for my projects

    Danish - the new title is even worse.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Need to calculate critical data elements

    I'm happy to help you, by suggesting an acceptable title, but I do not yet understand what you want. How does Excel know which elements of the caisis table are CDE's and which are not? Cell shading is no use as it is NOT a value.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Registered User
    Join Date
    05-24-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    30

    Re: Need to calculate critical data elements

    Hi Glenn,

    I apologize for my title blunder, I am not sure as to what to put up as the title. What I actually want is that, out of total error percentage I want to calculate the percentage of CDEs (which are highlighted in yellow) having corresponding values in "#missing" and "# incorrect" columns. I hope I am clear this time.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Need to calculate critical data elements

    Excel can not recognise a colour. Can I add a column to the table of entries on the last dheet to show which ones are CDEs?

  7. #7
    Registered User
    Join Date
    05-24-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    30

    Re: Need to calculate critical data elements

    Yes, that would be great actually.

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Search a cell for a keyword & return a value

    Your thread title should ideally look like the sort of phrase you would use in a gooigle search. Google would have no idea what a "critical data element" is!! Since you have already made an effort to change it, I have edited your post to show an acceptable title.

    So, in LookupCodes,

    F2: Yes or No.

    G2:
    =IFERROR(INDEX(E:E,AGGREGATE(15,6,ROW($E$2:$E$27)/($F$2:$F$27="Yes"),ROWS(G$2:G2))),"")

    assembles all the CDEs (keywords!!).

    A Named Range (CTRL-F3 to view edit) dynamically selects onlt those non-blank values in G. I called it CDEs.

    =$G$2:INDEX($G$2:$G$27,SUMPRODUCT(--(LEN($G$2:$G$27)>0)))

    finally, in Total, F2, copied across and down:
    =IFERROR(1/(1/IF(SUMPRODUCT(--(NOT(ISERR(SEARCH(CDEs,$C2)))))>0,D2,"")),"")
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    05-24-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    30

    Re: Search a cell for a keyword & return a value

    Hi Glenn,

    Thank you so very much for this!! I am entering different values to check if this works for all the situations. I will surely let you know about it. Thank you once again.

    And yea, I will make a note of the point about title, going forward I will try to select an appropriate title.

    Best,
    Danish

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Search a cell for a keyword & return a value

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Big projects, little projects, weird projects, new projects!
    By BoExcels in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 10-13-2019, 10:33 AM
  2. Scrape web data using multiple elements (sub elements)
    By Snoddas in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-19-2019, 01:56 PM
  3. [SOLVED] Finding Percentage of Awarded Projects from a changing list of Projects
    By swvogt in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-26-2017, 10:26 AM
  4. Looking up to external data.....but......time critical
    By jimmy05 in forum Excel General
    Replies: 4
    Last Post: 03-12-2014, 04:56 AM
  5. [SOLVED] Calculating Variance Based on Matching Multiple Elements
    By bgauthier in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-22-2013, 06:05 PM
  6. Help me out writing a critical formula !
    By Mughrabi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-22-2012, 06:54 AM
  7. Replies: 1
    Last Post: 06-29-2012, 03:21 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1