วิธีการเรียง IP ใน Excel
This site has a great formula to convert an IP Address to a number that you can then sort.
//www.mvps.org/dmcritchie/excel/sorttcp.htm#tcpn
This is the actual formula:
=((VALUE(LEFT(B1, FIND(".", B1)-1)))*256^3)+((VALUE(MID(B1, FIND(".", B1)+1, FIND(".", B1, FIND(".", B1)+1)-FIND(".", B1)-1)))*256^2)+((VALUE(MID(B1, FIND(".", B1, FIND(".", B1)+1)+1, FIND(".", B1, FIND(".", B1, FIND(".", B1)+1)+1)-FIND(".", B1, FIND(".", B1)+1)-1)))*256)+(VALUE(RIGHT(B1, LEN(B1)-FIND(".", B1, FIND(".", B1, FIND(".", B1)+1)+1))))
เอาสูตรนี้วางไว้ตั้งแต่ตำแหน่ง B1 เลย แล้วลากๆๆ ลงไปจนจบ จากนั้นก็ Sort เป็นอันสำเร็จ
Create Date : 16 ธันวาคม 2554 |
|
0 comments |
Last Update : 16 ธันวาคม 2554 13:38:05 น. |
Counter : 1077 Pageviews. |
|
|
|