Excel - Removing different rows in 2 sheets
Solved/Closed
Max
-
Oct 10, 2011 at 03:34 AM
venkat1926 Posts 1863 Registration date Sunday June 14, 2009 Status Contributor Last seen August 7, 2021 - Oct 10, 2011 at 07:44 AM
venkat1926 Posts 1863 Registration date Sunday June 14, 2009 Status Contributor Last seen August 7, 2021 - Oct 10, 2011 at 07:44 AM
Related:
- Excel - Removing different rows in 2 sheets
- Tentacle locker 2 - Download - Adult games
- Five nights in anime 2 - Download - Adult games
- Feeding frenzy 2 download - Download - Arcade
- Euro truck simulator 2 download free full version pc - Download - Simulation
- Resident evil 2 remake free download - Download - Horror
4 responses
venkat1926
Posts
1863
Registration date
Sunday June 14, 2009
Status
Contributor
Last seen
August 7, 2021
811
Oct 10, 2011 at 05:27 AM
Oct 10, 2011 at 05:27 AM
what is your expertise in excel. Are you familiar with macros.
any how I am giving you manual solution. if you want macro post back
suppose your sheet 1 is like this
hdnag1 hdng2
f 4
d 3
a 1
s 2
g 5
some of these of column A in this sheet are there in sheet2 and not all
in sheet 1 C1 type "expt" without quotes
in c2 type or copy this formula
=IF(ISNA(VLOOKUP(A2,Sheet2!$A$2:$A$100,1,0)),"",VLOOKUP(A2,Sheet1!$A$2:$A$100,1,0))
now sort sheet1 according to column "expt" DESCENDING
those rows where the cells in column C are blank will come in the bottom. you can delete those rows.
subsequently you can also delete the column "expt" in sheet1
try this in this experimental data. if you want macro whose operation will be easier post back
any how I am giving you manual solution. if you want macro post back
suppose your sheet 1 is like this
hdnag1 hdng2
f 4
d 3
a 1
s 2
g 5
some of these of column A in this sheet are there in sheet2 and not all
in sheet 1 C1 type "expt" without quotes
in c2 type or copy this formula
=IF(ISNA(VLOOKUP(A2,Sheet2!$A$2:$A$100,1,0)),"",VLOOKUP(A2,Sheet1!$A$2:$A$100,1,0))
now sort sheet1 according to column "expt" DESCENDING
those rows where the cells in column C are blank will come in the bottom. you can delete those rows.
subsequently you can also delete the column "expt" in sheet1
try this in this experimental data. if you want macro whose operation will be easier post back
Thank you very very much.
It took me some time to understand the formula.
(still I don't understand exactly what is happening, but it's working now)
I had to change the formula to my Dutch version of Excel (meaning that comma's had to be replaced with ;)
Resulting in:
=IF(ISNA(VLOOKUP(A4;Sheet1!$A$2:$A$80000;1;0));"";VLOOKUP(A4;Sheet2!$A$2:$A$80000;1;0))
(this may probably help people with a Dutch or similar version of Excel)
Once again, thank you very very much
It took me some time to understand the formula.
(still I don't understand exactly what is happening, but it's working now)
I had to change the formula to my Dutch version of Excel (meaning that comma's had to be replaced with ;)
Resulting in:
=IF(ISNA(VLOOKUP(A4;Sheet1!$A$2:$A$80000;1;0));"";VLOOKUP(A4;Sheet2!$A$2:$A$80000;1;0))
(this may probably help people with a Dutch or similar version of Excel)
Once again, thank you very very much
If possible I am also curious about the MACRO,
as I am trying to work more with MACRO's in the future
as I am trying to work more with MACRO's in the future
venkat1926
Posts
1863
Registration date
Sunday June 14, 2009
Status
Contributor
Last seen
August 7, 2021
811
Oct 10, 2011 at 07:44 AM
Oct 10, 2011 at 07:44 AM
see help under VLOOKUP