Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 35,218
Default wildcard in IF function

Not that I could think of--but that doesn't mean much. Maybe someone else will
jump in with a solution for both the 2 and 3 character strings.

joeu2004 wrote:

On Feb 24, 5:35 pm, Dave Peterson wrote:
=SUMPRODUCT(--(LEFT(A19:A26,2)<"ad"),--(LEFT(A19:A26,3)<"sub"),C19:C26)


That's the best I could come up with, too. I was struggling to see if
there was a way to calculate LEFT() only once. I vaguely remember
seeing formulas of the form "expr<{const1,const2}" meaning either
OR(expr<"const1",expr<"const2") or
AND(expr<"const1",expr<"const2"), I don't remember which. But I
could not get the "expr<{...,...}" form to work as needed. Besides,
in my vague recollection, "const1" and "const2" were numbers, not
strings.

Anyway, is there no way to avoid calculating LEFT() more than once?

(Other than using a UDF.)


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel wildcard ? for replacing strings in dropdown function Excel Wildcard ? Replace Excel Discussion (Misc queries) 1 January 27th 07 05:57 PM
Need help on countif and sumif function with dates and wildcard characters chinita_jill Excel Discussion (Misc queries) 5 July 19th 06 05:22 PM
sum if wildcard Marcel New Users to Excel 1 April 30th 06 11:25 AM
Vlookup with wildcard Peter Excel Discussion (Misc queries) 0 January 13th 06 07:54 PM
How do I use the wildcard character and the NOT function? KDA Excel Worksheet Functions 1 June 24th 05 04:36 PM


All times are GMT +1. The time now is 09:50 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"