+ Reply to Thread
Results 1 to 5 of 5

Nested IF with Vlookup Help Required?

  1. #1
    Registered User
    Join Date
    01-11-2007
    Posts
    94

    Nested IF with Vlookup Help Required?

    I have a Row with System Name and I have Values for each System, I want to get a result in one Col where ever the System Col have value greater than zero then bring the System name in Result Col. If it is less than Zero do nothing. I have some 34 System Columns like this.


    Attach is Spreadsheet example
    Attached Files Attached Files

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    This is close

    =IF(E2>0,E1&",","")&IF(F2>0,F1&",","")&IF(G2>0,G1&",","")&IF(H2>0,H1&",","")&IF(I2>0,I1&",","")&IF(J2>0,J1&",","")&IF(K2>0,K1&",","")&IF(L2>0,L1&" ","")

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    11-28-2006
    Posts
    45
    =IF(E2>0,E1&", ","")&IF(F2>0,F1&", ","")&IF(G2>0,G1&", ","")&IF(H2>0,H1&", ","")&IF(I2>0,I1&", ","")&IF(J2>0,J1&", ","")&IF(K2>0,K1&", ","")&IF(L2>0,L1&",","")

    This works but is very longwinded

    Cheers

    Tom

  4. #4
    Registered User
    Join Date
    11-28-2006
    Posts
    45
    Sorry VBANoob, you beat me to it. you can delete my post now.....

    Cheers

    Tom

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,719
    To eliminate the additional comma....

    =SUBSTITUTE(IF(E2>0,","&E1,"")&IF(F2>0,","&F1,"")&IF(G2>0,","&G1,"")&IF(H2>0,","&H1,"")&IF(I2>0,","&I1,"")&IF(J2>0,","&J1,"")&IF(K2>0,","&K1,"")&IF(L2>0,","&L1,""),",","",1)

    although for 34 values you'll have a rather long formula.

    There is no native formula that concatenates arrays but if you use the Morefunc addin you can use the MCONCAT function and this formula for 34 columns

    =SUBSTITUTE(MCONCAT(IF(E2:AL2>0,","&E1:AL1,"")),",","",1)

    confirmed with CTRL+SHIFT+ENTER

    get morefunc here

    http://xcell05.free.fr/

+ 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