How to compare two columns in Excel

吃可爱长大的小学妹 提交于 2019-12-02 18:40:18

问题


I have data in excel like below

columnA                         columnB     columnC 
Saidabad S.O (Hyderabad)        500059      500059
Samskruthi S.O                  500088      
Sanath Nagar Colony S.O         500018      500018

if columnB and columnC are equal then i want the following result then I have output like

columnA                         columnB     columnC   columnD 
Saidabad S.O (Hyderabad)        500059      500059    Saidabad S.O (Hyderabad)
Sanath Nagar Colony S.O         500018      500018    Sanath Nagar Colony S.O

Is it possible to do this in excel. If it is possible then please give me formula for my query

Thanks in advance


回答1:


put =IF(B2=C2,A2,"-") in D2. Then drag it down as far as needed. Then select the AUTO FILTER option and filter out the "-" from columnD.



来源:https://stackoverflow.com/questions/22435965/how-to-compare-two-columns-in-excel

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!