@count for first names beginning with "

I was trying to come up with a formula for counting club members and partners by using an "&" in front of the first name of partners. I could not find a conditional function whereby I could count the names that begin with the "&". I used trial and error with various count functions on strings with if thens, etc. I either end up with syntax errors or a null. Not that important but I like solving puzzles and may find a use for the concept with other strings in the future. Bottom line is: I would like to pick out a unique character at the beginning of different strings and count it (numerically) if is there (true).

Here's an alternative that is similar to Jerry's, but allows placing the ampersand in a more logical location in the Name column entries. The yellow-filled column (Flag) may be hidden.
Column B: Entered data (names), with an ampersand used to join names of partners where applicable.
Column C (Flag) contains a formula that places a null string in rows where there is no entry in the column B (Name), zero in rows where the names entry does not contain an ampersand, and a number larger than zero corresponding to the position of the ampersand in rows where the Names entry has one.
C2, and filled down: =IF(LEN(B)>0,IFERROR(FIND("&",B),0),"")
Cells D2 and E2 contain similar formulas to count the two-name (partner) entries and the single name entries, using the flags set in column C.
D2: =COUNTIF(C,">0")
E2: =COUNTIF(C,"=0")
Regards,
Barry

Similar Messages

  • How do I sync my new ipad mini with my old ipad 2, without losing any apps or data in notes?  I need step by step instructions for first-time sync with ipad mini.  Thanks.

    How do I sync my new ipad mini with my old ipad 2, without losing any apps or data in notes?  I need step by step instructions for first-time sync with ipad mini.  Thanks.

    If you synced it many times, you have to have a backup. It's just a question of how old that backup is now. When did you last sync?
    First of all launch iTunes on your computer and go to Edit>Preferences>Devices. Do you see any backups for you iPad in that window? If so, how new is the newest backup? That will be the backup that you will want to use. But remember that if you use that backup and it is one month old, you can only restore from that date back in time. Anything that you did on the iPad in the past month will not be in that backup.
    Turn on the new iPad Minin and start activating OTA via WiFi. You will get to a certain point in the process where you will be given the choice to Set up as new, Restore from iCloud - or Restore from iTunes. You will want to select Restore from iTunes.
    That is the short and sweet version. There are step by step instructions in this article. This applies to the mini as well as the iPad 4 or the iPad 3 for that matter.
    http://www.everythingicafe.com/how-to-set-up-new-ipad/2012/03/16/

  • I want parameter for program name entering with f4 help pls send  code

    I want parameter for program name entering with f4 help pls send code
    Points if helpful

    Hi,
    PROG is a string which indicates the type of the object --- program
    u can call the FM as follows
    CALL FUNCTION 'REPOSITORY_INFO_SYSTEM_F4'
      EXPORTING
    <b>    object_type                     =  'PROG'
       OBJECT_NAME               =  p_report</b>
      ENCLOSING_OBJECT                =
      SUPPRESS_SELECTION              = 'X'
      VARIANT                         = ' '
      LIST_VARIANT                    = ' '
      DISPLAY_FIELD                   =
      MULTIPLE_SELECTION              =
      SELECT_ALL_FIELDS               = ' '
      WITHOUT_PERSONAL_LIST           = ' '
    IMPORTING
      OBJECT_NAME_SELECTED            =
      ENCLOSING_OBJECT_SELECTED       =
      STRUCINF                        =
    TABLES
      OBJECTS_SELECTED                =
      RECORD_TAB                      =
    EXCEPTIONS
      CANCEL                          = 1
      WRONG_TYPE                      = 2
      OTHERS                          = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Patil

  • How do I change the first name associated with a developer account?

    How do I change the name on my developer account. I now have my discussion ID tied in with developer account, and I would like to change the name associated with my developer account. There is a field to change my first name on the discussion board, but there seems to be no option to change the first or last name associated with a developer account.

    I ran into the same problem and was glad to find this post.
    I started to register as a iOS developer but my daughters name shows up in the personal info field and can not be changed. When I go to the "manage my ID" page it has my name and the correct info. How do I fix this for my Developer ID registration?
    I just sent an email to the link Dave supplied and am waiting for a response.

  • How to declare internal table in BADI with variable name beginning with 0..

    Gurus,
    How to declare an internal table within a BADI. I have to implement a BADI UC_TASK_CUSTOM for BCS to BW load and there i have to  declare an internal table like:
    TYPES:          BEGIN OF t_cube_data,
                    0cs_version       TYPE /bi0/oics_version,
                    0sem_cgcomp       TYPE /bi0/oisem_cgcomp,
                    bcs_vers          TYPE /bic/oibcs_vers,
                    bcs_lcus          TYPE /bic/oibcs_lcus,
                    bcs_ldch          TYPE /bic/oibcs_ldch,
                    bcs_invcom       TYPE /bi0/oibcs_invcom,
                    bcs_litem         TYPE /bic/oibcs_litem,
                    bcs_llob          TYPE /bic/oibcs_llob,
                    bcs_lmay          TYPE /bic/oibcs_lmay,
                    0move_type        TYPE /bi0/oimove_type,
                    pcompany         TYPE /bi0/oipcompany,
                    bcs_lprg          TYPE /bic/oibcs_lprg,
                    figlxref3         TYPE /bic/oifiglxref3,
                    fiscyear         TYPE /bi0/oifiscyear,
                    fiscper3         TYPE /bi0/oifiscper3,
                    fiscvarnt        TYPE /bi0/oifiscvarnt,
                    curkey_gc        TYPE /bi0/oicurkey_gc,
                    unit             TYPE /bi0/oiunit,
                    cs_trn_gc        TYPE /bi0/oics_trn_gc,
                    cs_trn_qty       TYPE /bi0/oics_trn_qty,
              END OF t_cube_data
    But with this declaration it gives a error saying that u cannot have a variable beginning with 0...like 0cs_version....
    but i have to do it for my functionality to wrk...
    Please help me do it....
    how can i declare a internal table that allows me to have variable names that start with 0....
    Please help....Its URGENT....
    Thanks
    Sam

    Murali,
    I need to have 0 before the variable name in the declaration of the internal table....how can i attain that....
    Please suggest...
    Thanks
    Sam

  • CFUPDATE problem with field name beginning with a number

    I have a form (actually several) that is gathering data for a survey. I tried to use cfupdate to update the data elements and got a string index out of range error. I tested again without the form fields that began with numbers and it worked just fine. I then tried to enclose the offending field names in () and []. Both times I got same error. Does anyone have a work around for this? The code and error are below.
    Changing the field names is not really an option. This survey has almost 400 data points and most of the fields begin with the question number.
    Thanks
    DW
    <cfupdate datasource="#application.fdp_datasource#" tablename="arra_survey1" dbtype="ODBC" formfields = "entry_no, 2_a_fy09, '2_a_fy10', '2_a_fy11', '2_a_fy12', '2_b_fy09', '2_b_fy10', '2_b_fy11', '2_b_fy12', '2_c_fy09', '2_c_fy10', '2_c_fy11', '2_c_fy12', '2_d_fy09', '2_d_fy10', '2_d_fy11', '2_d_fy12', '2_e_fy09', '2_e_fy10', '2_e_fy11', '2_e_fy12', '2_f_fy09', '2_f_fy10', '2_f_fy11', '2_f_fy12', '2_g_fy09', '2_g_fy10', '2_g_fy11', '2_g_fy12', '2_h_fy09', '2_h_fy10', '2_h_fy11', '2_h_fy12', '2_i_fy09', '2_i_fy10', '2_i_fy11', '2_i_fy12', '2_j_fy09', '2_j_fy10', '2_j_fy11', '2_j_fy12', '2_k_fy09', '2_k_fy10', '2_k_fy11', '2_k_fy12', '2_l_fy09', '2_l_fy10', '2_l_fy11', '2_l_fy12', central_office, dept_office, incl_other, 3_a_fy09, 3_a_fy10, 3_a_fy11, 3_a_fy12, 3_b_fy09, 3_b_fy10, 3_b_fy11, 3_b_fy12, 3_c_fy09, 3_c_fy10, 3_c_fy11, 3_c_fy12, 3_d_fy09, 3_d_fy10 3_d_fy11, 3_d_fy12, 3_e_fy09, 3_e_fy10, 3_e_fy11, 3_e_fy12, 3_f_fy09, 3_f_fy10, 3_f_fy11, 3_f_fy12, 3_g_fy09, 3_g_fy10, 3_g_fy11, 3_g_fy12, 3_h_fy09, 3_h_fy10, 3_h_fy11, 3_h_fy12, 3_i_fy09, 3_i_fy10, 3_i_fy11, 3_i_fy12, 3_j_fy09, 3_j_fy10, 3_j_fy11, 3_j_fy12, 3_k_fy09, 3_k_fy10, 3_k_fy11, 3_k_fy12, 3_l_fy09, 3_l_fy10, 3_l_fy11, 3_l_fy12">
    String index out of range: -2
    The error occurred in C:\Inetpub\wwwroot\directory\process_arra_suvey_2.cfm: line 12
    12 : <cfupdate datasource="#application.fdp_datasource#" tablename="arra_survey1" dbtype="ODBC" formfields = "entry_no, 2_a_fy09, '2_a_fy10', '2_a_fy11', ...

    I think you have run one of CFUPDATE's limitations.  I am not 100% certain, but I do not think cfupdate provides a way to escape invalid column names like yours.  In which case you may need to do a regular UPDATE within a  cfquery instead... or rename your columns.
    fields that began with numbers
    Most databases discourage creating column names that start with a number (or other restricted characters).  While many databases will allow you to escape invalid names, it is simpler all around to avoid them altogether.  Otherwise, you may have to escape the names in every single query. The recommendations vary, but usually object names that begin with a  letter, and contain only letters, numbers and underscores are considered  safe.
    This survey has almost 400 data points and most of the fields begin with the question number.
    Four-hundred (400) is a lot of columns for a single table.  The fact that they all them seem to contain the same type of information (ie response to a question) is an indication that data should probably be stored in a separate table, as rows, not columns.  For example questions could be stored in one table, possible answers in another, and the results of an individual test/survey stored in a third table.  A structure like that is much easier to query, can easily accommodate changes (add/remove questions, responses, etcetera) without having modify the table every time.

  • IOS 7 Pages file missing because name begins with '.'

    I updated my iPad mini to iOS 7 and then updated Pages to the latest version.  The prior version of Pages allowed me to name a file beginning with a period ('.'), but in the new version this isn't allowed and I cannot see my file.  This is a very important file for me so I really need to be able to recover it.  I haven't found any file manager type programs that will allow me to see it and rename it.
    Any ideas?
    Thanks.

    Yes, this is so true! I was hoping it would be fixed with the iOS8 release and iCloud Drive, but sadly that has not happened.
    I could live with a keyboard shortcut, but you cannot expect me to scroll down just to add an item if I want to use this a lot on the web (which I would like to do).

  • Fix for SOLR searches beginning with wildcard?

    All, I am having problems finding clear answers on if the above was corrected in ColdFusion 10. 
    I can't get my head around the idea of SOLR not allowing search criteria to begin with a wildcard.  I've seen a solution for reverse wildcard searching, which is great as long as I specify criteria for which I know the ending letters.  For example, if I am looking for all entries ending in "ing", I could do a search on "*ing", using the reverse wildcard to find "gni*".  I have yet to see, or come up with, a solution for a SOLR search with wildcards in the start and end of the criteria.  For example, lets say I am looking for any word with "fus" in the middle, such as "confusing" or "perfusing" or "profusely".  I would want to do a search such as "*fus*".  From what I understand thus far, this cannot be done in SOLR?
    Thanks,
    Tom

    ColdFusion will support whatever Apache solr supports as it is the underlying engine we are using.
    And Solr does support it: http://lucene.apache.org/solr/api/org/apache/solr/analysis/ReversedWildcardFilterFactory.h tml
    I think this is an egregious hack, but still, it's the way they've chosen to support it.
    Solr technically disables support of leading wildcards by default in the traditional query parsers due to concerns about query performance since it tends to select a large percentage of indexed terms.
    Be that as it may, this should be my decision, as the maintainer of the index, not your decision to blanketly disallow it.  If it's available, then one can use it if one choses, or not use it for the reasons you cite.  If you blanketly disallow it, you're removing the ability for me to make that decision.
    It's also a bit of a backwards compat issue, innit?  Verity allowed leading wildcards.
    Adam

  • Create a metric to count on Item Number begining with 9 or 7

    I need to create a metric that counts on all Pay Item Numbers that begin with 9 or 7

    CASE WHEN metric LIKE '9%' OR metric LIKE '7%' THEN 1 END
    you might need to cast it as char and metric's aggregation must be set to Sum

  • Trying to compose a new email. Addind the name in the "TO" ared brings up other names beginning with same letter but I can't clear these other names.

    Addressing an email problem. Manually putting a email address is the TO area brings up other names ( with same first letter) from the contact list. this list of unwanted names freezes in place and won't go away unless I restart Firefox. This list blocks my view of the address and composition area. This has been happening for a few days. If i use Chrome, I don't have this problem...only with Firefox. My OS is XP if that matters.

    Tried clearing. No Change. I select "NEW" then manually type in a email address which then pops up additional names for me to select/ highlight . I can select or highlight additional names if i want to but I can't get rid of the names or the window where these names appear. Even if I select my IN BOX or SENT this window with all the names is there and obstructs my view and use. It can't be deleted

  • XML Schema for elements names varying with number

    HI ,
    I have an xml document where the no of tags are unlimited ,but having same name +tag number
    ex:-<name1>String</name1>
    <name2>String</name2>
    <name3>String</name3>
    <name4>String</name4>
    <name5>String</name5>
    I need to design a schema for this xml,where the name tag can go up to any number,i am not able to use attributes,as the system recieving this xml is demanding this format.
    can any one give me a schema for this,so that i will be able to generate jaxb objects to generate xml from the schema,in my webservice

    Hi Abhishek,
    Thanks for your reply
    In our project
    The remaining part of the code we are dealing with schema and jaxb objects..i am having only this xml which is pending....
    as of now i was creating this xml in a dynamic passion only using DOM.
    my plan is to atleast do like below
    expected result
    <doc>
    <tag1></tag1>
    <tag2></tag2>
    <tag3></tag3>
    <tag4></tag4>
    <tag5></tag5>
    </doc>
    I am able to generate the below xml
    Actual
    <doc>
    <tag></tag>
    <tag></tag>
    <tag></tag>
    <tag></tag>
    <tag></tag>
    </doc>
    I am trying to write an XSL and transform above result to the expected result. But still not be able to write the xsl to match mmy expected result
    Edited by: Aditya on Aug 3, 2011 7:26 AM

  • Someone please help me regarding synching for first time but with lots of apps on the iPad

    Hi, when I bought my iPad2 it was booted in the store, and since then I never connected to a computer, how do I now sync to my PC without losing all the apps I paid for? Please help, thanks.

    Authorize your computer for iTunes content - launch iTunes and go to Store>Authorize this computer. Make sure that you are signed into your iTunes account on the computer as well. If you are already authorized and have been using iTunes on your PC you are good to go.
    I copied this from another discussion. If you follow these steps you should be fine - for all of your purchased content.
    https://discussions.apple.com/message/11527071#11527071
    1) Without connecting your iPad to your laptop, start iTunes. Click on Edit. Click on Preferences. Click on Devices. Check the box next to "Prevent your iPod etc. from automatically syncing." Click OK.
    2) Now connect your iPad to your laptop and start iTunes.
    3) When iTunes starts, right click on your iPad under Devices in the left column. Select Transfer purchases etc.
    4) After it finishes transferring all your apps to your new laptop, right click on your iPad and select Backup your iPad.
    5) After it finishes backing up your iPad, right click on your iPad and select Restore etc.
    6) After it finishes restoring, left click on your iPad , then click on the Apps tab on top, and check the box next to Sync Apps, then click on Apply below.
    If everything on your iPad looks good after the sync, go back and click on Edit / Preferences / Devices and UN-check the box next to Prevent your iPod etc. The only other thing you may want to check is if your contacts, bookmarks, etc. are syncing correctly now. If not, go to the Info tab after connecting and make sure you indicate which features you want to sync with what sources.
    That should do it.

  • Hi - When I go into Contacts and type a letter in the search bar to get to last names that begin with that letter I get a list of random names that don't correlate to the letter. My settings are fine.  Help ?

    Hi. When I go into my contacts and type a letter in the saerch bar to get to a list of last names that begin with that letter I get a list of random names that don't begin or end with the letter.  My Settings appear fine.  Any insights would be greatly appreciated.  Cheers Bill

    The search bar is not designed to take you to names beginning with the letter you put in. If you want to do that, use the letters down the side. In the search bar, the device will return results for all contacts that have that have that letter in them. If you type a couple of letters of the name, you'll find what you want faster. Once you get used to how it works, it's quite efficient.
    Best of luck.

  • Starts With Parameter for Last Name for Created By serach criteria F4

    Hi,
    I have a requirement, where I need to add a seach parameter "Starts With" in backend for the last/first name of the Created by serach criteria F4 in lead search.
    But I am seeing for the CREATED_BY criteria the F4 automatically comes from standard and there is no view exist for the F4 in backend.This seems to come from the domain level! Can anyone help how to achieve this?
    Thanks.

    Hello Raj,
    In lead search, we have a criteria for Created_by. Now when user uses the F4 of the Created_by, there are option for first name and last name to search the user names.
    Now when user uses any name(1st or last), the result shows as 1 result found, but actually now result comes.
    hence now they are asking me to add a parameter as starts with for the 1st name and last name of the created_by F4 window search criteria.
    Hope this explanation will be clear for you. If possible please help.
    Actually the F4 of the Created_by comes from the standard, and there is no component/view available in CRM.
    Thanks.

  • Will the dock keyboard for first generation iPad work with iPad third generation?

    Will the dock keyboard for first generation work with the new iPad third generation?

    It should, which is based only on the fact that the connections are remaining the same (the 30 pin usb connection)
    that said, the 3 is thinner and smaller than the first one, so if it's dependant on a tight fit it may not work exactly like it does on the 1.

Maybe you are looking for

  • Extra power cable needed for a SATA drive in a G4 AGP "Sawtooth"?

    If one adds a SATA controller card and a SATA hard drive to a G4 AGP "Sawtooth", will a power cable like the one at the below link be needed, or would the necessary power cabling ordinarily come with the drive? [http://eshop.macsales.com/item/Micro%2

  • Monitor on PC network?

    Hello Is this possible but I would like to know how or if there is software that allows a monitor on a Windows PC on the network to become the monitor for the Mac mini? Cheers

  • Complex layout and images on webdynpro

    Hello: I've been using webDynpro for some apps, and I couldn't help noticing how "hars" the final GUI is... is there a way that I can import an HTML file and start importing eviews from there? You know websites usually start in photoshop, I create th

  • Development Plan not transporting

    Hi there, I'm having a problem when transporting my Development Plan from DEV to QAS. It shows in PHAP_CATALOG under TMC Talent Development Plan, but it doesn´t show on the Portal. I checked my IMG config, its all the same but the first step. Anyone

  • Question about multiple screens (display+HDTV)

    I have my 30" display connected to one port of my video card, and a DVI-VGA cable that goes around the corner to my HDTV, so what I'd like to do is be able to flip between both of these screens on my 30" display (not mirrored) so I could have my desk