View Single Post
  #3   Report Post  
spottkitty
 
Posts: n/a
Default

I'd like the blanks to stay blank, otherwise they'll be counted in a pivot
table. Very close. This works for the fields that have numbers, the blank
fields are returning a #value error.

Thank you

"Debra Dalgleish" wrote:

Assuming you want the blanks returned as zero:

=MIN(1,VLOOKUP(A12,CAPModXTab!$A$3:$I$280,3,TRUE))

spottkitty wrote:
Hi All

I'm running a crosstab query in access, importing into excel and using it to
show on another sheet if a step is used or not. The crosstab query counts
the number of times the step is used. Example, my first yes shows 8. Here's
the formula working on the second sheet.

=VLOOKUP(A12,CapModXtab!$A$3:$I$280,3,TRUE)

It returns the value, 8 for my trues, blank for false. I'd like the 8's to
show up as 1. Is there a way to add that into my formula or format the cells
to do this.

I was able to change the cell format to yes or no. That would work for me,
but people are used to seeing "1" meaning yes we use that step.

Thanks!
Barbara



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html