Monday, May 5, 2008

Menghilangkan Duplikasi Dalam Excel

Berikut adalah kode VBA untuk menghapus duplikasi data serta menghilangkan item yang tidak sama.

Gambar di bawah menunjukkan dua buah kolom yang berisi data. Kita ingin menghapus duplikasi data dari kolom kedua dengan membandingkan ke isi kolom A.



Kode VBAnya adalah sebagai berikut:

Sub RemoveDuplicatesInCells()

    Dim c As Range
    Dim rCheckForDupes As Range

    Set rCheckForDupes = Range("A1:B14")

    With rCheckForDupes

        For Each c In .Columns(2).Cells

            If WorksheetFunction.CountIf(.Columns(1), c.Value) > 0 Then
                c.ClearContents
            End If

        Next c

    End With

    Set rCheckForDupes = Nothing

End Sub


Hasilnya adalah sebagai berikut:



Bagaimana untuk menghapus sel-sel yang kosong? Maka kita ubah kode VBA menjadi

.

Sub RemoveDuplicatesInCells2()

    Dim c As Range
    Dim rCheckForDupes As Range

    Set rCheckForDupes = Range("A1:B14")

    With rCheckForDupes

        For Each c In .Columns(2).Cells

            If WorksheetFunction.CountIf(.Columns(1), c.Value) > 0 Then
                c.ClearContents
            End If

        Next c

        .Columns(2).SpecialCells(xlCellTypeBlanks).Select

        Selection.Delete Shift:=xlUp

        .Cells(1).Select

    End With

    Set rCheckForDupes = Nothing

End Sub


Hasilnya adalah:.



Untuk menghapus data yang tidak sama maka, ubahlah tanda lebih besar (>) dalam "If WorksheetFunction.CountIf(.Columns(1), c.Value) > 0" menjadi tanda sama dengan (=) sign.


 

Sumber: andrewsexceltips.com.

Friday, May 2, 2008

Paper, Articles and Presentation of Hydrogen Energy

Hydrogen Energy Systems (general) 

Hydrogen Energy Research Needs (H2NET Annual Meeting, July 2000)

Hydrogen : the Fuel for the Future (H2NET Annual Meeting, June 2001)

Hydrogen Systems (Seminar, May 2002)

Global Hydrogen (H2NET Annual Meeting, July 2002) 

H2NET Summer Meeting 2004:  Hydrogen's role in climate change mitigation & Developments in UK hydrogen

H2NET Summer Meeting 2005: Hydrogen Production & The UK Strategic Agenda for Hydrogen Energy

 

Hydrogen Production

Hydrogen Production (Seminar, February 2001)

Hydrogen production by electrolysis (Seminar, September 2004)

Hydrogen Production (Summer meeting, June 2005)

 

Hydrogen Storage

Hydrogen Storage (Seminar, November 2000)

Hydrogen Storage Materials (Seminar, December 2004)

 

Hydrogen End-Use Systems

Hydrogen End Use Systems (Seminar, 2001)

Hydrogen End-Use - Fuel Cells (Seminar 2007)

Hydrogen End-Use - Combustion (Seminar 2007)

 

Miscellaneous

Hydrogen Safety and Standards (Seminar, November 2002)

Novel Hydrogen Technologies (Seminar, March 2003)

Regional, National, and International Hydrogen Energy R&D Programmes (Seminar, November 2003)

The European Hydrogen & Fuel Cell Technology Platform (Seminar, May 2004)

Hydrogen development from Scotland to the EC (Seminar, September 2004)

H2NET Seminar: Developments in EC Hydrogen Programme, Standards & Safety (Seminar, October 2006)

  

Please note - that the icon on the following pages indicates that the document is in PDF format.

Source: http://www.h2net.org.uk/

OfficeUsers.ORG Editorials