View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Gary Keramidas Gary Keramidas is offline
external usenet poster
 
Posts: 2,494
Default indirect formula help please

x - 2 is a code for a product and it resides in a cell, U1 in this case
other codes a

w-2
bab
10r

--


Gary


"Tom Ogilvy" wrote in message
...
=SUMIF(U$22:U$527,B9,P$22:P$527)

What is X then?


=SUMIF(U$22:U$527,Indirect("A" & x-2),P$22:P$527)

if x is a defined name. or if you want to refer to a cell for the value of x


=SUMIF(U$22:U$527,Indirect("A" & B3-2),P$22:P$527)

--
Regards,
Tom Ogilvy



"Gary Keramidas" wrote:


how can i use indirect to replace the x - 2 in the criteria argument with a
cell
reference?
can't seem to figure it out.

=SUMIF(U$22:U$527,"X - 2",P$22:P$527)
--


Gary