Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to compare two sheets and write results to a third sheet. The first sheet has two columns:

title_add | add something
title_del | del something
title_lst | list something

The second sheet:

add something | add members in group
del something | delete members from group

In the third sheet, the output should be:

{"title_add","add members in group"},
{"title_del","delete members from group"},
{"title_lst","list something"},

[non matching details will be retained]

I have written function that writes to third sheet first column:

{"title_add}

IF(sheet1!B1=sheet2!A1, sheet3!A1=CONCATENATE("""",sheet1!A1,""",""",sheet2!B1,"""}"),  
                        sheet3!A1=CONCATENATE("{""",sheet1!A1,""",""",sheet1!B1,"""}"))

What's the mistake or rectification required?

share|improve this question

migrated from stackoverflow.com Dec 11 '12 at 6:41

This question came from our site for professional and enthusiast programmers.

3  
remove the sheet3!A1= 's from the formula –  chris neilsen Dec 10 '12 at 7:39
    
yes, i did that and it worked. i traced the error! thanks. –  xploreraj Dec 10 '12 at 9:00

1 Answer 1

Try:

="{"""&sheet1!A1&""","""&IF(sheet1!B1=sheet2!A1,sheet2!B1,sheet1!B1)&"""},"

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.