Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
KO
 
Posts: n/a
Default yes or no results spreadsheet

I have a very simple excel table, 3 columns, many rows.

ColA = response 1 (y or n)
ColB = response 2 (y or n)
ColC = Include (y or n)

What I want ColC to produce is as follows:

If ColA and ColB are both y, then ColC is y
If ColA and ColB are both n, then ColC is n
If ColA and ColB disagree (one y, one n), then ColC is n

I need a formula so I dont have to go through each row (there are 1000 or
so) and enter each response in ColC by hand.

Thanks for your help.

  #3   Report Post  
Posted to microsoft.public.excel.misc
Kevin B
 
Posts: n/a
Default yes or no results spreadsheet

The following formula in column C should do it:


=IF(AND(A1="Y",B1="Y"),"Y","N")

--
Kevin Backmann


"KO" wrote:

I have a very simple excel table, 3 columns, many rows.

ColA = response 1 (y or n)
ColB = response 2 (y or n)
ColC = Include (y or n)

What I want ColC to produce is as follows:

If ColA and ColB are both y, then ColC is y
If ColA and ColB are both n, then ColC is n
If ColA and ColB disagree (one y, one n), then ColC is n

I need a formula so I dont have to go through each row (there are 1000 or
so) and enter each response in ColC by hand.

Thanks for your help.

  #4   Report Post  
Posted to microsoft.public.excel.misc
Dave O
 
Posts: n/a
Default yes or no results spreadsheet

This is the simplest formula I could think of:
=IF(A1=B1,A1,"n")

  #5   Report Post  
Posted to microsoft.public.excel.misc
Elkar
 
Posts: n/a
Default yes or no results spreadsheet

In Column C enter:

=IF(AND(A1="y",B1="y"),"y","n")

HTH,
Elkar


"KO" wrote:

I have a very simple excel table, 3 columns, many rows.

ColA = response 1 (y or n)
ColB = response 2 (y or n)
ColC = Include (y or n)

What I want ColC to produce is as follows:

If ColA and ColB are both y, then ColC is y
If ColA and ColB are both n, then ColC is n
If ColA and ColB disagree (one y, one n), then ColC is n

I need a formula so I dont have to go through each row (there are 1000 or
so) and enter each response in ColC by hand.

Thanks for your help.



  #6   Report Post  
Posted to microsoft.public.excel.misc
Ardus Petus
 
Posts: n/a
Default yes or no results spreadsheet

This will return "n" if both A1 and B1 are "n"

--
AP

"Dave O" a écrit dans le message de news:
...
This is the simplest formula I could think of:
=IF(A1=B1,A1,"n")



  #7   Report Post  
Posted to microsoft.public.excel.misc
KO
 
Posts: n/a
Default yes or no results spreadsheet

Thanks very much Kevin. Very elegant (and simple).

"Kevin B" wrote:

The following formula in column C should do it:


=IF(AND(A1="Y",B1="Y"),"Y","N")

--
Kevin Backmann


"KO" wrote:

I have a very simple excel table, 3 columns, many rows.

ColA = response 1 (y or n)
ColB = response 2 (y or n)
ColC = Include (y or n)

What I want ColC to produce is as follows:

If ColA and ColB are both y, then ColC is y
If ColA and ColB are both n, then ColC is n
If ColA and ColB disagree (one y, one n), then ColC is n

I need a formula so I dont have to go through each row (there are 1000 or
so) and enter each response in ColC by hand.

Thanks for your help.

  #8   Report Post  
Posted to microsoft.public.excel.misc
Sandy Mann
 
Posts: n/a
Default yes or no results spreadsheet

KO" wrote in message
...

<snip

If ColA and ColB are both n, then ColC is n


<snip

--
Regards


Sandy
In Perth, the ancient capital of Scotland


with @tiscali.co.uk


"Ardus Petus" wrote in message
...
This will return "n" if both A1 and B1 are "n"

--
AP

"Dave O" a écrit dans le message de news:
...
This is the simplest formula I could think of:
=IF(A1=B1,A1,"n")





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
Generating Simple Reports From A Master Spreadsheet Scott1888 Excel Worksheet Functions 1 May 21st 06 10:38 AM
How do I insert a 2-3 page Excel spreadsheet as an object in MS Wo D at Spectra Excel Discussion (Misc queries) 0 May 15th 06 07:39 PM
Spreadsheet shortcuts not working brt Setting up and Configuration of Excel 2 April 26th 06 01:57 PM
Spreadsheet merging problems Sam B Excel Worksheet Functions 0 September 19th 05 08:05 PM
calculating results in formulas Linda Excel Discussion (Misc queries) 9 July 6th 05 09:20 AM


All times are GMT +1. The time now is 03:00 AM.

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"