+ Reply to Thread
Results 1 to 15 of 15

Combination

Hybrid View

  1. #1
    Registered User
    Join Date
    07-07-2015
    Location
    Shah Alam, Selangor Malaysia
    MS-Off Ver
    2003
    Posts
    8

    Combination

    Hi, My name Hisham from Malaysia.
    I need a support from all of you how to create a formula to combine all data from 1 row ?
    Here I attach an attachment.
    Sorry, my data is under Malay language.



    to.png

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 365
    Posts
    2,406

    Re: Combination

    Hi Hisham, want to ask you what the logic behind it? Why C twice, A once and 3 twice?

    regards

  3. #3
    Registered User
    Join Date
    07-07-2015
    Location
    Shah Alam, Selangor Malaysia
    MS-Off Ver
    2003
    Posts
    8

    Re: Combination

    Hi Azumi,

    C twice because the result for student get in exam is a below 59% and will display : C
    A mean ; student must archive 80% and above
    B mean ; student archive 79% - 60%
    C mean ; student archive 59% - 40%
    D mean ; student archive 39% - 20%
    E mean ; student archive <20%

  4. #4
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Combination

    A bit hard with your picture to know the cell addresses but assuming the cells are b3, d3, f3, h3 and j3 ie every second cell on the third row then try this

    =b3&d3&f3&h3&j3
    Happy with my advice? Click on the * reputation button below

  5. #5
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: Combination

    You can formulate that using COUNTIFs and the &.

    Something like...
    Formula: copy to clipboard
    = COUNTIF(A3:J3,"A") & "A," & COUNTIF(A3:J3,"B") & "B, and " & COUNTIF(A3:J3,"C") & "C" 

  6. #6
    Registered User
    Join Date
    07-07-2015
    Location
    Shah Alam, Selangor Malaysia
    MS-Off Ver
    2003
    Posts
    8

    (Update) Combination

    Hi all,

    Here I attach with a details.
    I already follow a formula but still not changing at "KEPUTUSAN".

    Please refer attachment.

    Thank you with all of you GREAT SUPPORT !
    Attached Images Attached Images

  7. #7
    Registered User
    Join Date
    07-07-2015
    Location
    Shah Alam, Selangor Malaysia
    MS-Off Ver
    2003
    Posts
    8

    Re: Combination

    Hi Quekbc...

    I already follow your formula...
    Can you check first ?
    Maybe I missing some text ?

    = COUNTIF(E8:M8,"A") & "A," & COUNTIF(E8:M8,"B") & "B," & COUNTIF(E8:M8,"C") & "C," & COUNTIF(E8:M8,"D") & "D, and " & COUNTIF(E8:M8,"E") & "E"

  8. #8
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Combination

    I follow now. Use Quekbc's formula above. That should work

  9. #9
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Combination

    Works for me. Make sure you amend the range E8:M8 in the formula to actually correspond to the range you have your data in

  10. #10
    Registered User
    Join Date
    07-07-2015
    Location
    Shah Alam, Selangor Malaysia
    MS-Off Ver
    2003
    Posts
    8

    Re: Combination

    Hi Crooza,

    Can you attach your sample here ?
    I'm still error....

  11. #11
    Registered User
    Join Date
    07-07-2015
    Location
    Shah Alam, Selangor Malaysia
    MS-Off Ver
    2003
    Posts
    8

    Re: Combination

    Hi Crooza,

    Can you attach your sample here ?
    I'm still error....

  12. #12
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: Combination

    Hi Hishamullah, I think it'll be better for you to attach a small sample of your file here. The formula should and does work.
    But it looks like there might be something on your file that we cannot account for without us seeing it.

  13. #13
    Registered User
    Join Date
    07-07-2015
    Location
    Shah Alam, Selangor Malaysia
    MS-Off Ver
    2003
    Posts
    8

    Re: Combination

    Hi Quekbc,

    Here I attach my file.
    Can you help me ?
    Thanks a lot with your support !
    Attached Files Attached Files

  14. #14
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: Combination

    Hi Hishamullah, the formula does work, to a degree. I see what you mean now. You don't want the 0s to be shown. For that, I've resorted to something more complicated.

    Formula: copy to clipboard
    =IF(COUNTIF(E9:M9,"A")=0,"",COUNTIF(E9:M9,"A") & "A" & IF(COUNTIF(E9:M9,">A")=1, ", & ", IF(COUNTIF(E9:M9,">A")>1,", ", "")))
    &IF(COUNTIF(E9:M9,"B")=0,"",COUNTIF(E9:M9,"B") & "B" & IF(COUNTIF(E9:M9,">B")=1, ", & ", IF(COUNTIF(E9:M9,">B")>1,", ", "")))
    &IF(COUNTIF(E9:M9,"C")=0,"",COUNTIF(E9:M9,"C") & "C" & IF(COUNTIF(E9:M9,">C")=1, ", & ", IF(COUNTIF(E9:M9,">C")>1,", ", "")))
    &IF(COUNTIF(E9:M9,"D")=0,"",COUNTIF(E9:M9,"D") & "D" & IF(COUNTIF(E9:M9,">D")=1, ", & ", IF(COUNTIF(E9:M9,">D")>1,", ", "")))
    &IF(COUNTIF(E9:M9,"E")=0,"",COUNTIF(E9:M9,"E") & "E")


    Please see attached.
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    07-07-2015
    Location
    Shah Alam, Selangor Malaysia
    MS-Off Ver
    2003
    Posts
    8

    Re: Combination

    Hi Quekbc,

    Good morning !

    Wow !!... Thanks a lot with your support.... :-)
    Now, the formula is does work to me.
    Yes, I want just to display the result only such as : How many "A", "B", "C", "D" or "E"...
    This is for our school for Result in UPSR (Ujian Penilaian Sekolah Rendah ; Primary School Trial).

    Thanks a lot with your support !!

+ 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. [SOLVED] how many cell in a row that contain certain combination from a larger combination
    By system in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 11-17-2012, 03:04 PM
  2. Combination
    By Vignesh in forum Excel General
    Replies: 1
    Last Post: 09-16-2009, 10:17 AM
  3. Trying every possible sum combination
    By Caligula in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-23-2009, 02:16 PM
  4. combination
    By RobcPettit@yahoo.co.uk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-23-2006, 04:35 AM
  5. [SOLVED] combination
    By deco in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-18-2005, 02:05 PM

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