View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CM CM is offline
external usenet poster
 
Posts: 136
Default Need help with a lookup or if statement

TRY THIS for c1:

=if(or(left(a1,3)="Sam",left(a1,3)="Ace")=TRUE,B1, 0)
--
hope to help,
cm


"Franci" wrote:

A B C
Samson 0.5 0.5
Samson Co. 0.3 0.3
Ace 0.7 0.7
Ace Co. 0.2 0.2
Peterson 0.8 0
Derby 0.6 0
Samson 0.9 0.9
Samson Co. 0.4 0.4
Ace 0.1 0.1
Ace Co. 0.3 0.3
Peterson 0.2 0
Derby 0.5 0

Entities:
Samson
Ace

If Col. A is equal to or starts with one of the names in the range
'Entities', I want Col. C to return the contents of Col. B, and if hot, to
return '0'. Any suggestions? Thanks!