Sama seperti fitur di JMT Excel Utilities yaitu Show Fill and Unfill Tools, dengan sedikit rumus kita bisa melakukan hal yang sama. Perhatikan gambar berikut:
Kolom A s/d C adalah data asli, sedang kolom D adalah rumus yang akan kita buat. Kita bermaksud untuk mengisi sel yang ada di dalam kolom A seperti hasil dalam kolom D. Rumus bisa dimulai di sel D2 sbb:
Columns A to C is the original data, while column D is a formula that we make. We intend to fill the cells in column A as results in column D. The formula in cell D2 can be started as follows:
Artinya jika sel B2 adalah sel kosong IF(B2=""; maka hasilnya akan kosong juga ""; selain itu jika sel A2 adalah sel kosong IF(A2=""; maka akan mengambil nilai di baris atasnya D1; selain itu akan mengambil nilai di sel A2 A2)). Kemudian Anda tinggal mengcopynya hingga baris terakhir.
This means that if cell B2 is the empty cell IF (B2 = ""; then the result will be empty too ""; otherwise, if cell A2 is blank cell IF (A2 = ""; then it will take the value in row above D1; or else it will take value in cell A2, A2)). Then you copy it to the rest of the row.
Just like Show Fill and Unfill Tools feature in JMT Excel Utilities, with a little formula we can do the same thing. See the following picture:
Kolom A s/d C adalah data asli, sedang kolom D adalah rumus yang akan kita buat. Kita bermaksud untuk mengisi sel yang ada di dalam kolom A seperti hasil dalam kolom D. Rumus bisa dimulai di sel D2 sbb:
Columns A to C is the original data, while column D is a formula that we make. We intend to fill the cells in column A as results in column D. The formula in cell D2 can be started as follows:
=IF(B2="";"";IF(A2="";D1;A2))
Artinya jika sel B2 adalah sel kosong IF(B2=""; maka hasilnya akan kosong juga ""; selain itu jika sel A2 adalah sel kosong IF(A2=""; maka akan mengambil nilai di baris atasnya D1; selain itu akan mengambil nilai di sel A2 A2)). Kemudian Anda tinggal mengcopynya hingga baris terakhir.
This means that if cell B2 is the empty cell IF (B2 = ""; then the result will be empty too ""; otherwise, if cell A2 is blank cell IF (A2 = ""; then it will take the value in row above D1; or else it will take value in cell A2, A2)). Then you copy it to the rest of the row.







0 komentar:
Posting Komentar