As attached sample, I want to put the value in the C column to column F , if the column A and B match with column D and E.
As attached sample, I want to put the value in the C column to column F , if the column A and B match with column D and E.
Last edited by naflas; 10-29-2010 at 01:07 AM.
How about:
=IF(AND(A1=D1,B1=E1),C1,"")
Here you go.
Note: the value will work as is. e.g.![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
i hope this makes sense?![]()
Please Login or Register to view this content.
Last edited by pr4t3ek; 10-28-2010 at 09:04 PM.
--
Regards
PD
----- Don't Forget -----
1. Use code tags. Place "[code]" before the first line of code and "[/code"]" after the last line of code. Exclude quotation marks
2. Thank those who have helped you by Clicking the scales above each post.
3. Please mark your post [SOLVED] if it has been answered satisfactorily.
Windows 7 using Office 2007 & 2010
Remember your [ code ] [ /code ] tags, makes reading soooo much easier
how did my code go naflas?![]()
can you post your workbook because i tested this based on the workbook that you gave me and it worked fine.
Hi Guys,
Reading the code above with the
Made me wonder if all three variables would be Dimed as Strings. The answer is - Only the Last and perhaps the reason for runtime error.![]()
Please Login or Register to view this content.
Read http://www.cpearson.com/excel/declaringvariables.aspx
Section of Pay Attention To Variables Declared With One Dim Statement
my code is assuming it looks exactly the same as your example workbook. like i said, please paste your workbook for a quick solution.
try this
![]()
Please Login or Register to view this content.
Solved , ur the number 1.
Thank u so much
no probs, cheers boss!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks