Need Macro/Function/formula to Replace the Values of one Excel Sheet if both Email(Column) value matches

I have 2 Excel 2007 Worksheets. Excel Worksheet 1 : (as below ) 3 Columns are important in Sheet 1 userid name email 100 sam sam@sam.com 200 pete pete@pete.com 300 Bum Bum@Bum.com 400 Harry Harry@Harry.com Worksheet 2 : (as below) ( user_id column is empty for all ) userid name email sam sam@sam.com Harry Harry@Harry.com pete pete@pete.com Bum Bum@Bum.com I need a function/forumla with a macro where i can fill the values for userid in sheet 2 where the sheet2 email = sheet1 email which will result as following in worksheet 2 userid name email 100 sam sam@sam.com 400 Harry Harry@Harry.com 200 pete pete@pete.com 300 Bum Bum@Bum.com I know SQL but the query takes a long long time on MySQL DB to get the result... Anyways below is the SQL query i was using in the DB. UPDATE `j_A` SET user_id = ( SELECT j_B.id FROM j_B WHERE j_B.email = j_A.email) WHERE EXISTS ( SELECT j_B.id FROM j_B WHERE j_B.email = j_A.email); Need Macro/Function/formula to Replace the Values of one Excel Sheet if both Email(Column) value matches,, if anyone cud help me regarding this creating Macro/Formula/functin etc...since dont have much knowldge of creating formulae in Excel Macros.. Thanks in advance. [1]: http://i.stack.imgur.com/ZvNSP.jpg

以上就是Need Macro/Function/formula to Replace the Values of one Excel Sheet if both Email(Column) value matches的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » excel

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏