Home |
Search |
Today's Posts |
#10
![]() |
|||
|
|||
![]()
Aladin Akyurek wrote...
=SUMPRODUCT(--RIGHT(" 0"&A1:A10,LEN(" 0"&A1:A10)-SEARCH("@", SUBSTITUTE(" 0"&A1:A10," ","@",LEN(" 0"&A1:A10) -LEN(SUBSTITUTE(" 0"&A1:A10," ","")))))) should cope with cells whose last word bit is a 'number', which house true numbers, which are empty. .... On a bit of a tangent, the 2.0 beta for OpenOffice Calc has surpassed Excel in this regard. OOo Calc can use real regular expressions in the same function that Excel provides lightweight wild cards. So this can be done in OOo Calc using =SUM(VALUE(IF(ISERROR(SEARCH("[0-9]";A1:A5));"0";MID(A1:A5; SEARCH("[0-9]";A1:A5);32)))) While I understand MSFT staff don't read these newsgroups regularly, I still hold the dim hope that if enough people ask for a given feature MSFT may eventually add it. Since VBScript/VJScript have a very good regexp engine (maybe not as good as Perl's, but quite capable), it's not as if they'd need to write new code. However, I'm enough of a realist to expect that flashing text and transparent dialog boxes are more likely to be added first. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sort or Filter option? | Excel Worksheet Functions | |||
Converting Numbers to Text properly | Excel Discussion (Misc queries) | |||
Convert data of cells to any type: Number, Date&Time, Text | Excel Discussion (Misc queries) | |||
Sorting when some numbers have a text suffix | Excel Discussion (Misc queries) | |||
Adding cells with numbers and text | Excel Worksheet Functions |