ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   specific data (https://www.excelbanter.com/excel-worksheet-functions/234740-specific-data.html)

MFS

specific data
 
Hi all, I used an example to explain my problem
I have data (plant/car) in column A in sheet 1, I want to have specific data
in sheet2 (only car) without having anything else

Sheet1- A1=car,A2=plant,A3=plant,A4=car

Sheet2- A1=if(sheet1!$A1=car;sheet1!A1;0)-- Sheet2-
A2=if(sheet1!$A2=car;sheet1!A2;0) Sheet2- A3=if(sheet1!$A3=car;sheet1!A3;0)
Sheet2- A4=if(sheet1!$A4=car;sheet1!A4;0) etc

Now for each cell in sheet1 does not equal car, I will get €œzero€ in sheet2
Sheet1- A1=car,A2=0,A3=0,A4=car

What I can do to avoid €œzero€, and to have only the data I want without
spaces between cells, which mean I want to have €œcar€ in sheet2
Sheet1- A1=car,A2=car

Please help me

--
MFS22

Eduardo

specific data
 
HI,
You can copy everything to the 2nd sheet, then sort by "0", highlight all
the rows that have 0, and delete them

"MFS" wrote:

Hi all, I used an example to explain my problem
I have data (plant/car) in column A in sheet 1, I want to have specific data
in sheet2 (only car) without having anything else

Sheet1- A1=car,A2=plant,A3=plant,A4=car

Sheet2- A1=if(sheet1!$A1=car;sheet1!A1;0)-- Sheet2-
A2=if(sheet1!$A2=car;sheet1!A2;0) Sheet2- A3=if(sheet1!$A3=car;sheet1!A3;0)
Sheet2- A4=if(sheet1!$A4=car;sheet1!A4;0) etc

Now for each cell in sheet1 does not equal car, I will get €œzero€ in sheet2
Sheet1- A1=car,A2=0,A3=0,A4=car

What I can do to avoid €œzero€, and to have only the data I want without
spaces between cells, which mean I want to have €œcar€ in sheet2
Sheet1- A1=car,A2=car

Please help me

--
MFS22



All times are GMT +1. The time now is 08:58 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com