+ Reply to Thread
Results 1 to 4 of 4

multiple a logical result array with a text array and return text

  1. #1
    Registered User
    Join Date
    07-15-2009
    Location
    Tokyo
    MS-Off Ver
    Excel 2003
    Posts
    4

    multiple a logical result array with a text array and return text

    Hi,

    I need to multiply an array of logical results ( returned as {1,0,0,0,1,0 et.}) with a text array (a reference column) and return the text in the reference column in case the value in the logical array is 1.

    -Sandy
    Last edited by san000; 08-16-2009 at 10:10 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: multiple a logical result array with a text array and return text

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

  3. #3
    Registered User
    Join Date
    07-15-2009
    Location
    Tokyo
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: multiple a logical result array with a text array and return text

    Donkeyote,

    Thx for the advice..I have attached a worksheet..different parameters like height, weight etc. are available for 5 people. Some of these are compulsory requirements. The data specifies if each person complies or not with the requirement. In the last cell of each row I need to display the list of names which do not comply for requirements which are compulsory.....hope this is clear...

    - Sandeep
    Attached Files Attached Files

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: multiple a logical result array with a text array and return text

    Unfortunately XL is not very good at generating strings like that... if you do really only have a few possibilities (ie 4 names) then a traditional approach would be something along the lines of:

    Please Login or Register  to view this content.
    Anything too vast would generally warrant a UDF .. there are quite a few UDF's out there for this type of thing... there's also Laurent Longre's morefunc.xll add-in which has the MCONCAT function which could be used along the lines of:

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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