Populate a cell with column headers, seperated by a comma, if any of the columns rows contain text

I have a table, much like the one below:-
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
John
Yes
Paul 
No
Dave
Jay
No
Matt
Yes
Yes
Karl
Lois
Jane
Maybe
Anna
Barry
No
Yes
Maybe
I want to populate a cell on another sheet with the column headers if the row contains text. For examplein the case of 'Matt', the value I want returned is 'E, R' becuase there is text in the 'Matt' Row in columns E and R
Anyone have any ideas?
Thanks,
Karl

Hi Hans,
Thanks for that. It works to an extent in that it returns the correct Column, but I actually want it to return the Column heading. It's my fault for not making it clear, I should have used different names for the column headings rather than just A to S......apologies.
Other than that, it does work, but if you have any suggestions on how to get the actual column heading, that would be great.
For example:-
Mon
Tue
Wed
Thu
Fri
Sat
Sun
Mon
Tue
Wed
Thu
Fri
Sat
Sun
Mon
Tue
Wed
Thu
Fri
John
Paul
Yes
Dave
Jay
Yes
No
Matt
Karl
Yes
Lois
Yes
Jane
Anna
Barry

Similar Messages

  • Is it possible to apply conditional formatting to a cell (or range) based upon a LOOKUP query to cell values in another sheet.? I want to alter the formatting (i.e., text and/or cell background color), but not cell content.

    Is it possible to apply conditional formatting to a cell (or range) based upon a LOOKUP query to cell values in another sheet.?
    I want to alter the formatting (i.e., text and/or cell background color), but not the content, of the target cell(s).

    Hi Tom,
    Your LOOKUP formula will return a value that it finds in the "other" table. That value can be used in conditional highlighting rules. (Numbers 3 calls it conditional highlighting, not conditional formatting. Just to keep us awake, I guess, but it works the same).
    Please explain what you are trying to do.
    Regards,
    Ian.

  • I have a new computer now with windows 8. Old one was windows 7. The itunes library contains all I expect on new computer. Ipod will not sync with content. It says it is syncing but only picks up 1 tune. Solution please. I am on itunes 64 but it makes no

    I have a new computer now with windows 8. Old one was windows 7. The itunes library contains all I expect on new computer. Ipod will not sync with content. It says it is syncing but only picks up 1 tune. Solution please. I am on itunes 64 but it makes no difference from 32 bit.

    See this older post from another forum member Zevoneer covering the different methods and software available to assist you with the task of copying content from your iPod back to your PC and into iTunes.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    B-rock

  • I'm trying to back up my phone and itunes states I can't authorize more than 5 computers with this apple ID, I no longer own any of the other computers I supposedly authorized my account on. What now? I can't back up my iphone.

    I'm trying to back up my phone and itunes states I can't authorize more than 5 computers with this apple ID, I no longer own any of the other computers I supposedly authorized my account on. What now? I can't back up my iphone.

    Use the Deauthorize All command documented in this article, or if it isn't an option, the 'contact iTunes Store support' link at the bottom of it.
    (115000)

  • My new birthday present (i-phone 4s) does not sync with my 2011 CRV navigation..is there any way the service tech at Honda can set this up for hands free usage?  It is very frustrating to not be able to use this phone like my cheaper old phone.

    My new birthday present of an i-phone 4s, can not be synced with the navigation of my 2011 Honda CRV.  Can anyone give us hints on what to do, as the Honda dealership can not enable the phone to work with hands free.  Help, this is very frustrating as the old cheap phone,worked perfect.  Apple did not make this a user friendly product for cars.

    Start by reading the User's Guide which will provide details for how to pair the device with other bluetooth devices.  This may also require reading the Owner's Manual for the vehicle to find out how to put it into pairing mode.

  • Report execution error with columns,rows truncating

    One of abaper executing report in background and he selected Output device:LOCL and format type:X_65_512/2 but some columns are truncating with that properties.to overcome this can i create new page format or format type? how can i assign page format to device type and device type to output device?
    explain me soonplz
    Thanks

    Hi,
    Pls see in text format in preview mode if that is ok then you have to check your output software format.
    Anil

  • Aol comes up with Bing and won't let me read any emails, the content of the inbox, sent, trash, etc shows nothing but a Bing icon

    In AOL, when I try to read the content of mail received, sent, trash, etc. The content is not there. It is just a Bing Icon with Search the Web, enhanced by Bing! I can open my mail and see the content in Internet Explorer.

    Hi [email protected],
    Are there any errors/warnings displayed on your screen when you attempt to open an item? If yes, please post them so we can take a closer look at it.
    If not, try clearing you Cache by going to: Tools -> Options -> Advanced -> Network / Offline Storage -> Clear Now. Then clear your cookies by going to Tools -> Options -> Privacy -> Clear your recent history.
    Regards,
    Ziggy

  • How to delete the selected rows with a condition in alv

    dear all,
    i am using the code in object oriented alv.
    WHEN 'DEL'.
    PERFORM delete_rows.
    FORM delete_rows.
    DATA : lv_rows LIKE lvc_s_row.
    data : wa_ROWs like LVC_S_ROW.
    FREE : gt_rows.
    CALL METHOD alv_grid->get_selected_rows
    IMPORTING
    et_index_rows = gt_rows.
    IF gt_rows[] IS INITIAL.
    MESSAGE s000 WITH text-046.
    EXIT.
    ENDIF.
    loop at gt_rows into wa_ROWs .
    if sy-tabix ne 1.
    wa_ROWs-INDEX = wa_ROWs-INDEX - ( sy-tabix - 1 ).
    endif.
    delete gt_sim INDEX wa_ROWs-INDEX .
    endloop.
    the rows to be deleted from int.tab gt_sim not in the alv display.
    all the rows should not be deleted if one of the field in gt_sim eq 'R'.
    how to check this condition

    dear jayanthi,
            ok if i am coding like that as u mentioned ,
              it will exit the loop when first time the field value is 'R'.
      if any of  the selected rows contains  field value 'R'. it shold not delete all the selected rows.
    as u suggested it will not delete after first time the field value is r.
    i am deleting it by tab index so,
    suppose if i am selecting the row without field value R say its tabix is 1.
      the next row with tabix 2 with field value R.
      it deletes the first row and exits , it should not delete the first row also.

  • Table cell with more than one component

    how can i make table cell with more than one component
    like below, cell in column 3 contains few button
    col0 | col1 | col2 |
    a | b |[btn1] [btn2] [btn3]|
    a | b |[btn1] [btn2] |
    and when i click on the any of the button a dialog box pop up saying something..

    Here's link to someone who did a lot with tables. Not sure about multiple buttons, but it should get you started.
    http://www2.gol.com/users/tame/swing/examples/SwingExamples.html

  • JTable cell Render on the last row column one help please

    Hi All
    I am hoping that someone will be able to help me with this....
    I want to render the last row and column one of the table with this render
    thanks for any help
    Craig
        public class MyRenderer2 extends DefaultTableCellRenderer {
            public Component getTableCellRendererComponent(JTable table,
                    Object value,
                    boolean isSelected, boolean hasFocus,
                    int row, int column) {
                ImageIcon icon = new ImageIcon(image_pics.SMALL_BLUE);
                setIcon(icon);
                return this;
        }

    it still renders every row
    any Ideas ??
    I just want the last row column 0 to be rendered
    I a call a method set table
    then I call for the data
    //TableModel
        public void setClientTableModel() {
            clientModel = new DefaultTableModel(coloumHeaderObject, 0) {
                public boolean isCellEditable(int row, int column) {
                    return false;
            TableSorter sorter = new TableSorter(clientModel); //ADDED THIS
            sorter.setTableHeader(phoneList.getTableHeader()); //ADDED THIS
            phoneList.setModel(sorter);
           // phoneList.setTableHeader(null);
            setTable();
            revalidate();
        public void setTable() {
          // phoneList.getColumnModel().getColumn(0).setCellRenderer(new MyRenderer());
            phoneList.getColumnModel().getColumn(1).setCellRenderer(new MyRenderer1());
            phoneList.getColumnModel().getColumn(4).setCellRenderer(new MyRenderer2());
            phoneList.getColumnModel().getColumn(0).setMinWidth(20);
            phoneList.getColumnModel().getColumn(0).setMaxWidth(20);
            phoneList.getColumnModel().getColumn(0).setPreferredWidth(20);
            phoneList.getColumnModel().getColumn(1).setMinWidth(20);
            phoneList.getColumnModel().getColumn(1).setMaxWidth(20);
            phoneList.getColumnModel().getColumn(1).setPreferredWidth(20);
            phoneList.getColumnModel().getColumn(2).setMinWidth(80);
            phoneList.getColumnModel().getColumn(2).setMaxWidth(80);
            phoneList.getColumnModel().getColumn(2).setPreferredWidth(80);
            phoneList.getColumnModel().getColumn(3).setMinWidth(150);
            phoneList.getColumnModel().getColumn(3).setMaxWidth(150);
            phoneList.getColumnModel().getColumn(3).setPreferredWidth(150);
            phoneList.getColumnModel().getColumn(4).setMinWidth(20);
            phoneList.getColumnModel().getColumn(4).setMaxWidth(20);
            phoneList.getColumnModel().getColumn(4).setPreferredWidth(20);
            phoneList.setOpaque(false);
            phoneList.setGridColor(Color.lightGray);
            phoneList.setRowHeight(18);
            phoneList.setShowVerticalLines(false);
            phoneList.setIntercellSpacing(new Dimension(0, 0));
            phoneList.setFont(new java.awt.Font("Lucida Grande", 0, 11));
            phoneList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
            if (ALLOW_COLUMN_SELECTION) { // false by default
                if (ALLOW_ROW_SELECTION) {
                    phoneList.setCellSelectionEnabled(true);
                phoneList.setColumnSelectionAllowed(true);
                ListSelectionModel colSM = phoneList.getColumnModel().getSelectionModel();
                colSM.addListSelectionListener(new ListSelectionListener() {
                    public void valueChanged(ListSelectionEvent e) {
                        if (e.getValueIsAdjusting())return;
                        ListSelectionModel lsm = (ListSelectionModel) e.getSource();
                        int row = phoneList.getSelectedRow(), col = 3;
                        int rowID = phoneList.getSelectedRow(), colID = 5;
                        if (lsm.isSelectionEmpty()) {
                        } else {
                            int selectedCol = lsm.getMinSelectionIndex();
                            if (selectedCol == 4) {
                                phoneNumber = (String) phoneList.getValueAt(row, col).toString();
                                main.setPhoneNumber(phoneNumber);
                                main.openLargePhone();
                                lsm.clearSelection();
                            if (selectedCol == 5) {
                                ID = (String) phoneList.getValueAt(row, col).toString();
                             //   main.setID(ID);
                              //  main.deleteContact();
                                lsm.clearSelection();
    //set table data
        public void setTest() {
            setClientTableModel();
            Object[] data = {" ", " ", "Work", "03 9841-8247", " "};
            clientModel.addRow(data);
            Object[] data1 = {" ", " ", "Fax", "03 9842-0360", " "};
            clientModel.addRow(data1);
            phoneList.getColumnModel().getColumn(0).setCellRenderer(new MyRenderer());
        }

  • Last cell with value in excel

    Hi all. I'm on devsuite 10g.
    Opening an excel file is there a way to obtain the last cell with value in a sheet??
    Thanks all for the collaboration,
    Fabrizio

    Hi all. I'm on devsuite 10g.
    Opening an excel file is there a way to obtain the last cell with value in a sheet??
    Thanks all for the collaboration,
    Fabrizio

  • How to sinc changes I made on cell with laptop Verison manager?

    New Galaxy II ... guys at the Verison store setup my cell ... downloaded over 2000 numbers from my Facebook account, Yahoo account.  I spent literally 6 to 8 hours ... carefully going through the numbers, deleting and organizing the numbers wanted into categories.  Thought it would be easier to finish the management on my laptop ... but when I opened Verizon on my laptop ... none of the work I've done on my cell appears changed. All of the old format ... and hundreds of numbers I do not want on my phone are still listed in my cell phone account.
    Can anyone tell me how to sinc the work I've done on my cell with my laptop management source?

    Hi.. I like the process you presented on deleting contacts.
    My concern based on this to " perform a factory resethttp://bit.ly/LfV00q to clear all contacts from your phone, then, when you sync your Gmail account all your contacts will be synced with your phone."
    I have to set up Everything all over again this is my first smartphone and well the fact that I'm in this position concerns me to reset.
    Thanks..

  • How can I make an Equation apply to an entire column, but only use the values in the specific rows?

    I am working on a research project using Numbers 09 and have columns for values that require me to use formulas using values in other columns. Becuase I am lazy and have 180 rows of data, I would like to find a way to have a formula apply to an entire column so that I don't have to go row by row inputting the formula.
    Essentially, I want to be able to have N(X)=F(X)+G(X). Where X is the row number. Is this possible?
    The real formula I want to have is (4*(F(X))^2)/G(X)
    Thanks! 

    Place this formula in your chosen column in the first row containing data in columns F and G.
    =(4*F^2)/G
    Press enter to confirm the entry. The result will appear in the cell.
    Click (once) on the cell containing the formula.
    Shift Click on the cell in the same column on the last row containing data in F and G to select all cells between. .
    Go Insert > Fill > Fill down.
    Done.
    Regards,
    Barry

  • How to export data with column headers in sql server 2008 with bcp command?

    Hi all,
    I want know "how to export data with column headers in sql server 2008 with bcp command", I know how to import data with import and export wizard. when i
    am trying to import data with bcp command data has been copied but column names are not came.
    I am using the below query:-
    EXEC master..xp_cmdshell
    'BCP "SELECT  * FROM   [tempdb].[dbo].[VBAS_ErrorLog] " QUERYOUT "D:\Temp\SQLServer.log" -c -t , -T -S SERVER-A'
    Thanks,
    SAAD.

    Hi All,
    I have done as per your suggestion but here i have face the below problem, in print statment it give correct query, in EXEC ( EXEC master..xp_cmdshell @BCPCMD) it was displayed error message like below
    DECLARE @BCPCMD
    nvarchar(4000)
    DECLARE @BCPCMD1
    nvarchar(4000)
    DECLARE @BCPCMD2
    nvarchar(4000)
    DECLARE @SQLEXPRESS
    varchar(50)
    DECLARE @filepath
    nvarchar(150),@SQLServer
    varchar(50)
    SET @filepath
    = N'"D:\Temp\LDH_SQLErrorlog_'+CAST(YEAR(GETDATE())
    as varchar(4))
    +RIGHT('00'+CAST(MONTH(GETDATE())
    as varchar(2)),2)
    +RIGHT('00'+CAST(DAY(GETDATE())
    as varchar(2)),2)+'.log" '
    Set @SQLServer
    =(SELECT
    @@SERVERNAME)
    SELECT @BCPCMD1
    = '''BCP "SELECT 
    * FROM   [tempdb].[dbo].[wErrorLog] " QUERYOUT '
    SELECT @BCPCMD2
    = '-c -t , -T -S '
    + @SQLServer + 
    SET @BCPCMD
    = @BCPCMD1+ @filepath 
    + @BCPCMD2
    Print @BCPCMD
    -- Print out below
    'BCP "SELECT 
    * FROM   [tempdb].[dbo].[wErrorLog] " QUERYOUT "D:\Temp\LDH_SQLErrorlog_20130313.log" -c -t , -T -S servername'
    EXEC
    master..xp_cmdshell
    @BCPCMD
      ''BCP' is not recognized as an internal or external command,
    operable program or batch file.
    NULL
    if i copy the print ourt put like below and excecute the CMD it was working fine, could you please suggest me what is the problem in above query.
    EXEC
    master..xp_cmdshell
    'BCP "SELECT  * FROM  
    [tempdb].[dbo].[wErrorLog] " QUERYOUT "D:\Temp\LDH_SQLErrorlog_20130313.log" -c -t , -T -S servername '
    Thanks, SAAD.

  • I am having trouble getting a numbers spreadsheet to hold different formats in the same column.  A column with a date formatted heading will not convert to $ for the cells below.   Any suggestions would help.

    I am having trouble getting a numbers spreadsheet to hold different formats in the same column.  A column with a date formatted heading will not convert to $ for the cells below.   Any suggestions would help.

    Hi Wayne,
    Thank you for this response.  I have tried this but when I start enterring $ amounts some, such as $6.00, go in OK others such as $4.00 appear as a date ie 4 Oct 12.  
    Kind regards
    Paul

Maybe you are looking for

  • Search help pop is missing in PO13 relationship

    Hi Friends,   In HR , PO13 Transaction relationship creation , Employee group search help, It will show the Employee group popupbox, Now iam not getting.. the problem with RH_OBJID_REQUEST function module .. Iam passing     PLVAR    DYNPRO_REPID     

  • Subroutine for subtotal not getting triggered

    Hi , I am using a dynamic internal table and passed to reuse_alv_grid_display .i have populated the event table with the subroutine for calculating the subtotal . Please find my code below. populating sort and layout  structure . z_v_repid = sy-repid

  • Nano doesn't display artworks

    Hi, u lot, i'm new in here and I have recently purchased a iPod Nano, and have tested it. Now, I'm trouble shooting with a problem, when in the iTunes I put to use a artwork, it appears, then I activate as told to do so in the User's manual, and I tr

  • Call pricing procedure - FM, ABAP

    Hi, I would like to call the pricing procedure in ERP. This procedure is called when the user create some sales documents (like quotation) and price is calculated based on Customer, Material, Route, Shipping data). I would provide all needed data and

  • Query in dialoque programming

    Hi friends, I have 4 fields in the table with F4 values from internal tables. My flow logic looks like: PROCESS ON VALUE-REQUEST.   FIELD istock-field1 MODULE f4_field1.   FIELD istock-field2 MODULE f4_field2.   FIELD istock-field3 MODULE f4_field3.