Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default Searching on 2 columns and putting result in third column.

Columns B and C just contain either Yes, No.

Depending on the combination I want to put the text result in column C as
follows.


A B C

Yes Yes "Result 1"
Yes No "Result 2"
No Yes "Result 3"
No No "Result 4"


Can SKS help out as my formulae seem to be going more and more complex with
no correct result in sight :(

Tx

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,276
Default Searching on 2 columns and putting result in third column.

Hi Rob,
copy the table given below in sheet2 of your workbook and I assume that you
are working in sheet1 starting in row 3 so in C3 enter the formula as follow

=sumproduct(--(a3=sheet2!$a$1:$a$5),--(b3=sheet2!$b$1:$b$5),sheet2!c$1:$c$5)

"RobFJ" wrote:

Columns B and C just contain either Yes, No.

Depending on the combination I want to put the text result in column C as
follows.


A B C

Yes Yes "Result 1"
Yes No "Result 2"
No Yes "Result 3"
No No "Result 4"


Can SKS help out as my formulae seem to be going more and more complex with
no correct result in sight :(

Tx


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default Searching on 2 columns and putting result in third column.

Assuming choices are in A2 and B2 respectively.

=IF(A2="Yes",IF(B2="Yes","Result 1","Result2"),IF(B2="Yes","Result
3","Result 4"))
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"RobFJ" wrote:

Columns B and C just contain either Yes, No.

Depending on the combination I want to put the text result in column C as
follows.


A B C

Yes Yes "Result 1"
Yes No "Result 2"
No Yes "Result 3"
No No "Result 4"


Can SKS help out as my formulae seem to be going more and more complex with
no correct result in sight :(

Tx


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
need some help pulling columns from one table and putting into ano need-some-help![_2_] Excel Discussion (Misc queries) 1 February 12th 09 02:26 AM
putting 2 long columns into multiple columns in excel page and sor bob_mhc Excel Discussion (Misc queries) 1 April 25th 08 07:51 AM
Lookup 3 columns and return a result from another column [email protected] Excel Discussion (Misc queries) 4 February 21st 07 10:54 PM
insert columns macro is putting 2 columns instead of 1 AGH Excel Worksheet Functions 2 February 27th 06 02:36 PM
Putting many columns into one jezzica85 Excel Discussion (Misc queries) 2 February 26th 06 01:30 PM


All times are GMT +1. The time now is 02:23 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"