Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
VBA doesn't have any bit shift operators. You can replicate bit
shifts by multiplying or dividing by the appropriate power of 2. Function ShiftLeft(Num As Long, Places As Integer) As Long ShiftLeft = Num * (2 ^ Places) End Function Function ShiftRight(Num As Long, Places As Integer) As Long ShiftRight = Num \ (2 ^ Places) End Function Note that there is no error checking in these procedures. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "v-2ajpau" wrote in message ... How 2 use right shift "<<" and left shift "" operator in excel? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Text "comparison" operator for "contains" used in an "IF" Function | Excel Worksheet Functions | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
2007 - Column unhide in Excel does not work i.e. "Ctrl+shift+)" | Excel Discussion (Misc queries) | |||
HELP on "left","right","find","len","substitute" functions | Excel Discussion (Misc queries) | |||
Insert 19 cells "Shift to the right" if cell contains "-" | Excel Programming |