View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
john_8000 john_8000 is offline
external usenet poster
 
Posts: 1
Default How do I add up texts as fixed number values in a row?

I'm creating a row with drop-down lists with text.I want to create a simple
drop-down list with yes and no. Yes would have a background (unseen) value
of 1and no would have a value of 0. After items were selected from the
drop-down list, I want the unseen value totaled to the far right of the page.
I found the following formula which works for columns, but when I try to
change the cell range to a row of cells, I get "#N/A".


=SUMPRODUCT((C3:C23={"Yes","No"})*({1,0}))

Thanks for any assistance.