Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
joolz46
 
Posts: n/a
Default difficult calculation

HI,
I have a column with yes/no or blank answers to be reflected in another
column with a 1 for y or n and a blank for a blank answer. I then need a
total for all the 1's in the same column! Sorry if this sounds a bit
gobbledegook. its the best I can do!
  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

Not sure why you need another column, but you could use

=IF(A1="y",1,0)

or the equivalent

=--(A1="y")

(where -- is two minuses together)

To count the number of y's:

=COUNTIF(A:A,"y")

If you're trying to count both y's and n's in the same column, use

=IF(OR(A1="y",A1="n"),1,0)

or

=IF(A1<"",1,0)

or their equivalent

=(A1="y")+(A1="n") and =--(A1<"")


To count y's and n's in the same column.

=COUNTIF(A:A,"y")+COUNTIF(A:A,"n")


In article ,
"joolz46" wrote:

HI,
I have a column with yes/no or blank answers to be reflected in another
column with a 1 for y or n and a blank for a blank answer. I then need a
total for all the 1's in the same column! Sorry if this sounds a bit
gobbledegook. its the best I can do!

  #3   Report Post  
Roger Govier
 
Posts: n/a
Default

Assuming the question to be in column A and the response in column B then in
C1
=IF(B1="",0,1)
Copy the formula down the cange of column C to match your range of data.
Sum the range of column C,
=SUM(C1:C100) for example

--
Regards
Roger Govier
"joolz46" wrote in message
...
HI,
I have a column with yes/no or blank answers to be reflected in another
column with a 1 for y or n and a blank for a blank answer. I then need a
total for all the 1's in the same column! Sorry if this sounds a bit
gobbledegook. its the best I can do!



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
Calculation Setting in Excel Stuart Bisset Excel Discussion (Misc queries) 0 June 17th 05 09:54 AM
How do I use a rounded calculation result in another calculation? vnsrod2000 Excel Worksheet Functions 1 January 26th 05 10:11 PM
How do I use a rounded calculation result in another calculation? vnsrod2000 Excel Worksheet Functions 1 January 26th 05 09:36 PM
Difficult (for me) formula/UDF calculation Mike Echo Excel Worksheet Functions 4 December 25th 04 09:09 AM
time-clock calculation dokliver Excel Worksheet Functions 3 October 28th 04 09:07 PM


All times are GMT +1. The time now is 05:09 PM.

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"