Search Results For : tutorial

Office Excel – TEXTJOIN Function

Microsoft releases new iterations of Microsoft Office suite every three years for desktop and Microsoft Office 365 is the subscription based cloud version of their Office software. Earlier in 2016, Microsoft released the 2016 edition of Office and some updates to Office 365 which added new features in Excel. Some very useful functions like the CONCAT and TEXTJOIN functions are added which make concatenating or joining text very easier with multiple cells or strings in your spreadsheet. These functions are only available in the latest Office 2016 desktop installation and Office 365 subscription. To show these new functions, here is the Excel CONCAT and TEXTJOIN function tutorial. I am breaking them into 2 different tutorials for ease of access.

The Excel TEXTJOIN function joins or combines text from multiple cells in your spreadsheet with each string separated by a delimiter. The delimiter can be a comma or space. If the delimiter is empty, the Excel TEXTJOIN function will concatenate the strings like in the previous tutorial. Here is how to use Excel TEXTJOIN function tutorial:

The format of the Excel TEXTJOIN function is:
TEXTJOIN(delimiter, ignore_empty, text1, text2, … , textN)

Definition

  • “delimiter” is the character or string inserted between each string you want to join.
  • “ignore_empty” is either TRUE (exclude empty cells or strings) or FALSE (include empty cells or strings).
  • “text1” is the first string or cell and “textN” is the nth string or cell which you want to join.

Now here is how we use the Excel TEXTJOIN function:

  1. In your Excel spreadsheet, see which cells or strings you want to join using TEXTJOIN.
  2. Then select a cell where you want to display the result of the TEXTJOIN function.
  3. For example, in this following example spreadsheet, we want to join the strings in cells A2 through D2 and we want to display the output in cell F2.
  4. Select the cell F2 and enter the Excel TEXTJOIN function in the formula bar above the spreadsheet:
  5. =TEXTJOIN(“ ”,TRUE,A2,B2,C2,D2)

  6. After entering the function, you will see the result in cell F2:
  7. Office Excel - TEXTJOIN function

    Office Excel – TEXTJOIN function

  8. As you can see in the example, the data in cells A2 through D2 is now joined in cell F2 and there are spaces between the strings since we entered space as a delimiter in the function.
  9. You can do this with numbers as well, like in the result shown in cell F3:
  10. Office Excel - TEXTJOIN function

    Office Excel – TEXTJOIN function

  11. The result in cell F4 is when TRUE is used:
  12. Office Excel - TEXTJOIN function

    Office Excel – TEXTJOIN function

  13. The result in cell F5 is when FALSE is used and you can see the difference between step 8 and 9:
  14. Office Excel - TEXTJOIN function

    Office Excel – TEXTJOIN function

  15. You can also add strings directly in the function as shown in the following examples:
  16. Office Excel - TEXTJOIN function

    Office Excel – TEXTJOIN function

—–
You can view more Office Excel Tutorials in the link too!

Quick note on Web.config file

A quick note on Web.config file in the ASP.NET project. It is worth noting that the file is a XML File (read this for more info – https://msdn.microsoft.com/en-us/library/ff400235.aspx )

One issue that hindered my process earlier was that the content in the value has special character it in, particularly, one of my SQL server’s password has a special character in it.

I would have to go and replace them accordingly. For instance, my password is <Password1& (note that < and ” is inclusive), i would have to change it to
&lt;Password1&amp;

You can refer to the list here – https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references

Office Excel – CONCAT Function

Microsoft releases new iterations of Microsoft Office suite every three years for desktop and Microsoft Office 365 is the subscription based cloud version of their Office software. Earlier in 2016, Microsoft released the 2016 edition of Office and some updates to Office 365 which added new features in Excel. Some very useful functions like the CONCAT and TEXTJOIN functions are added which make concatenating or joining text very easier with multiple cells or strings in your spreadsheet. These functions are only available in the latest Office 2016 desktop installation and Office 365 subscription. To show these new functions, here is the Excel CONCAT and TEXTJOIN function tutorial. I am breaking them into 2 different tutorials for ease of access.

Through the Office Excel CONCAT function, you can connect two or more text in different cells in your spreadsheet. When you connect two text, they are just joined together with no separation or space between them. Here is the tutorial on how to use Excel CONCAT function:

The format of the Excel CONCAT function is:
CONCAT(text1, text2, … , textN)

Where “text1” is the first string or cell and “textN” is the nth string or cell which you want to concatenate.

  1. In your Excel spreadsheet, see which cells or strings you want to concatenate.
  2. Then select a cell where you want to display the concatenated text.
  3. For example, in this following example spreadsheet, we want to concatenate the text in cells A11 through D11 and we want to display the output in cell F11.
  4. Select the cell F11 and enter the CONCAT function in the formula bar above the spreadsheet:
  5. =CONCAT(A11,B11,C11,D11)

  6. After entering the function, you will see the result in cell F11:
  7. Excel Concat

    Excel Concat

  8. As you can see in the example, the data in cells A11 through D11 is now concatenated in cell F11 and there are no spaces between the text.
  9. You can do this with numbers as well, like in the result shown in cell F12:
  10. Excel Concat

    Excel Concat

  11. If you enter a cell in the function which is empty, the function will not show anything from that cell in the output:
  12. Excel Concat

    Excel Concat

  13. You can also directly add a string in the function, as shown in the following example:
  14. Excel Concat

    Excel Concat

—–
You can view more Office Excel Tutorials in the link too!

Unable to see .htaccess or dot files in File Manager, cPanel

I was attempting to “edit” .htaccess file to make some url redirection for a page and I realised I wasn’t unable to locate the file in my web root. The first instinct is that I didn’t have any .htaccess file and I decided to create one. However, I was given an error that ERROR: Could not create file “.htaccess” in path. File exists..

This indeed confused me as I cannot locate the file. Upon further probing, I realised what was wrong. You have to check on the option Show Hidden Files (dotfiles) when you open up File Manager in your cPanel.

Tick the options Show Hidden Files (dotfiles).

Tick the options Show Hidden Files (dotfiles).

Converting Binary to Gray Codes

I am doing one of the tutorial in CS2100 in NUS SoC and one of the questions require us to convert between binary and gray codes.

I have decided to write a simple tutorial on how to convert from binary to gray codes.

What is Gray Code?
“….is a binary numeral system where two successive values differ in only one bit. The reflected binary code was originally designed to prevent spurious output from electromechanical switches.”
~http://en.wikipedia.org/wiki/Gray_code

What is Binary Code?
A binary code represents text or computer processor instructions using the binary number system’s two binary digits, 0 and 1.
~http://en.wikipedia.org/wiki/Binary_code

Before we start, lets look at an Exclusive OR, XOR(sometimes EOR gate, or EXOR gate)’s truth table.

The whole concept on how to do the conversion between the 2 number system heavily uses the XOR truth table.

 

 

 

Binary to Gray Code Conversion

Binary to Gray Code Conversion : Step 1 – Prepare a table like this

Binary to Gray Code Conversion

Binary to Gray Code Conversion : Step 2 – Copy down the Most Significant Bit (MSB) of Binary onto Gray Code row

Binary to Gray Code Conversion

Binary to Gray Code Conversion : Step 3 – Get the MSB and next MSB of Binary and XOR them and copy its result down

Binary to Gray Code Conversion

Binary to Gray Code Conversion : Step 4 – Get the MSB and next MSB of Binary and XOR them and copy its result down

Binary to Gray Code Conversion

Binary to Gray Code Conversion : Step 5 – Get the MSB and next MSB of Binary and XOR them and copy its result down

Binary to Gray Code Conversion

Binary to Gray Code Conversion : Step 6 – Get the MSB and next MSB of Binary and XOR them and copy its result down

Binary to Gray Code Conversion

Binary to Gray Code Conversion : Step 7 – Get the MSB and next MSB of Binary and XOR them and copy its result down

Binary to Gray Code Conversion

Binary to Gray Code Conversion : Step 8 – Get the MSB and next MSB of Binary and XOR them and copy its result down

Gray Code to Binary Conversion

Gray Code to Binary Conversion : Step 1 – Prepare a table like this

Gray Code to Binary Conversion

Gray Code to Binary Conversion : Step 2 – Copy up the Most Significant Bit (MSB) of Gray Code onto Binary row

Gray Code to Binary Conversion

Gray Code to Binary Conversion : Step 3 – Take the MSB of Binary and next most MSB of Gray Code and XOR them. Copy its result upwards.

Gray Code to Binary Conversion

Gray Code to Binary Conversion: Step 4 – Take the MSB of Binary and next most MSB of Gray Code and XOR them. Copy its result upwards.

Gray Code to Binary Conversion

Gray Code to Binary Conversion: Step 5 – Take the MSB of Binary and next most MSB of Gray Code and XOR them. Copy its result upwards.

Gray Code to Binary Conversion

Gray Code to Binary Conversion: Step 6 – Take the MSB of Binary and next most MSB of Gray Code and XOR them. Copy its result upwards.

Gray Code to Binary Conversion

Gray Code to Binary Conversion: Step 7 – Take the MSB of Binary and next most MSB of Gray Code and XOR them. Copy its result upwards.

Gray Code to Binary Conversion

Gray Code to Binary Conversion: Step 8- Take the MSB of Binary and next most MSB of Gray Code and XOR them. Copy its result upwards.