Kind all,
I'm getting crazy with this issue any help will be appreciated!
I've two columns: on M text descriptions, on I values. I need to SUM values only if it find a 16 characters number (ex. 4001098776554332) but must starting with "4" as first character in M range.
Some unlucky test: SUMPRODUCT((LEN('SQL Results'.M2:M65536=16))*(LEFT('SQL Results'.M2:M65536,1)="4"),('SQL Results'.I2:I65536) ...and many other unsuccessful variants.
I also tried with SUMIF('SQL Results'.M2:M65536;"^4...............";'SQL Results'.I2:I65536) using regular expression in OpenOffice. Seems function, but I prefer to do it with SUMPROD. This can sounds good in your experience?
I try to find also the number (not the SUM) using SUMPRODUCT(--(LEN('SQL Results'.M2:M65536)=16))...but it's not correct, because it count also letters and space (this formula return the count of 16 characters cells only, but i need 16 numbers starting with 4 as very first cell character.
Thank you for your kind collaboration.
Bookmarks