A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Searching on 2 columns and putting result in third column.



 
 
Thread Tools Display Modes
  #1  
Old April 14th, 2009, 03:57 PM posted to microsoft.public.excel.worksheet.functions
RobFJ[_3_]
external usenet poster
 
Posts: 12
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  
Old April 14th, 2009, 04:30 PM posted to microsoft.public.excel.worksheet.functions
eduardo
external usenet poster
 
Posts: 2,131
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  
Old April 14th, 2009, 04:32 PM posted to microsoft.public.excel.worksheet.functions
Luke M
external usenet poster
 
Posts: 2,672
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


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:29 PM.


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