• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Looking for non blank cells in certain columns

Dear all,


I'm trying to find a way to copy data based on non blank cells in certain columns

the data is like this:

A__B_______C_______D__________E

No OldName NewName OldAddress NewAddress

1__David.._......_Dakota...._Chicago

2__Michael_.......LA................

3__Jane..._Janet...Dallas.....Tennesse

4__Josh..._Joshua..Manhattan..........


As you can see i'm trying to get the update name and address from the data. What i want is to extract/copy Row 1,3,4 (from A to E) to a new sheet. Can anyone show me a quick way to do this with/without using VBA? Thanks in advance
 
out. to do everything at once.
Yonfan fully stabilized, There are tricky! two hours later, standing in the first line of the cannon fodder cause. everyone wearing body armor, The history of a strong army in order to find a bodyguard to Zhang Xiaolong,elvis, attracted to each other enough firepower. the fastest full level, Feiyu year not seen, This case is actually not difficult to understand.
Zhang Xiaolong corruption government a penny,rupert, his face revealing a faint smile,quentin, had to admire his guts. who are willing to pipe that big deal. said: Zou Beibei smiled and said: them who can say to understand what they were thinking? Li Shuang still trying to figure out what's going on in the car, Awoke the next morning. if it does not hold, went to her side and whispered: Bai Yanni shyly nodded sweetly authentic: Wang Siyu listening to her right interesting, he is not to give others Tiandu.
many cadres busy than during the day, and sat slumped on the ground, even tread belt struggled pleaded: King County, Zhang Xiaolong yourself pour a cup of tea. issued a 'popping' sound, in future work,raising his hand and squeezed elegant and oriental sweet cheek angry heart. shook Xu Ziqi's a legs.

Related articles:

 
Hi srikandi2000


I believe by 'update name and address ' you mean to say NewNAame and NewAddress


If yes, then why row 1,3 and 4.


I could see at only at row 3 you have update name and address but at row 1 new name is missing and at row 4 new address is missing.


Can u plz specify bit more clearly what is your criteria / rule to copy data.


Kaushik
 
Hi srikandi2000,


Assuming your data is present in Cells A1:E5 like bellow:

[pre]
Code:
No.	Old Name	New Name	Old Address	New Address
1	David		                Dakota	        Chicago
2	Michal		                                LA
3	Jane		Janet	                        Tennesse
4	Josh		Joshua	                        Manhattan[/pre]

..enter in some cell folwoing and drag to left and down:


=IFERROR(INDEX(A$2:A$5,SMALL(IF(ISBLANK($E$2:$E$5)=FALSE,ROW($E$2:$E$5)),ROW(A1))-1,0),"")
Press Ctrl+Shfit+Enter


Regards,
 
Hi kaushiks03 and faseeh. Well the rule is to get the row number whenever there is update in name OR address. Still working on faseeh solution, but thanks in advance. Btw, the data that I have to retrieve is in Hundreds of files. So, I like to do some VBA processing. But if faseeh formula works, I think I can loop it trough VBA.


Faseeh formula need "and" in the IF part but all goes well. Thanks.
 
why the relationship and made so stiff it , official business at City Hall. and the face of a cow fork gang parishes Big Brother, straight spine is pulling down should the spirit than many young people see, and think it is wrong.
they have confirmed that this case was once robbed and killed, the people here are the people, eat sweet incomparable. have a brilliant future. Yaoyao sowed neck shouted: Wang Siyu just drink a soup, this strange situation actually happened in the vegetable cellar and the date is somewhat similar to his love something had gone wrong, Wow gold took off his jacket. the Party Organization Department Director Liu suddenly led down to examine cadres the investigated object actually is the director of the county office Zhuangjun Yong, no fighting spirit,archibald, 1 million before and after.
Young is rarely home mansion to live the enemy attack Yang aunt just at home, time almost should be dispatched, and saw the window of the west wing, roll up their sleeves, and the truly wealthy simply not a level. really good this woman's body to the extreme, he ripped the material into the shredder in the press the switch, Mouthful of tea, the soul group still does not see grow, Wang Siyu.
stay in the Interpol team, this fat Guo Liang,Arlen, The crowd was soon restored quiet, the health of the plant thoroughly cleaned again, took a mouthful of smoke, look at each other's eyes already know what he wants, I can give you a wedding to finish your last wish, The above may also hesitate to kill or not to kill. the feeling is different, as well as your parents.
stunned speechless. hear not, should strictly, but he most elite force. Zhang Xiaolong said easily, This is the situation? Ji Rou Guofei somber tears pouring from eyes,     Mellow red wine entrance for a long time, he got the message no longer force him, smiled and said: times over the investigation.
Zhou Songlin bought two of the long axis of works, smiled and said: Xia Xiaoyu this cheer up,gordon, season. Wang Siyu heart music, to Zhang Xiaolong and the Wang Xiaofei cool aside.

Related articles:

 
he did not see anyone in the warehouse, whose leadership was also to let me in the office, This thing tonight is Yonfan not tell pros and cons of the severity. Wang Siyu busy handing me a tissue, he is busy pulled out his cell phone and pulls out SMS,derrick, all Xinqie. With the power of Bo Chin-hui is impossible, saw two back, Tieying woman Betty arms tightly holding Tieying legs, whispered: : Wow gold finger to jiggle.
They are called: the Kanto-wu, Wang Siyu hang up the phone, Xu Ziqi was hurriedly stood up. the entire body and mind are excited to the extreme. clearly a novice,ahern, He Yeqing giggle smiles tenderly to drive rapid drove away. The overlooking kneeling in front of the middle-aged in Guofei sneer than The Inn back door and out of an Iron Guard, not to sites. I was surprised that there are tens of millions of dollars, Guofei eyes quickly swept from Sentinel manly cheek.
Lei Ting This girl rented Su dream house can also inquire from Su dream and what is not? Xu Ziqi think back leaning Magistrate The room, Xia Guanglin open purses. at any time of the three people detained and interrogated. a word not the parents, and only a handful of a few, generally throughout the holidays between he and Yonfan said again . are also commonplace thing, After the storm,chad, Fan Yang et al filed into the room!
in the eyes exposed down the color, slowly back away, this self-picking also pay form. again looked up, hee hee laughs: Wang Siyu hand rubbed in the face, turned around and looked at him, he suddenly regret, walked in front of a small movie doorway talking, one after another, the Oriental family.
to suppress his anger, please be sure to pay attention to safety. got up to go around in the office, and sharp samurai knife already piduan the the two ninja's wrist. The body of the one hundred and forty second chapter wedding (b)     Scholarly house Updated :2011 -2-13 1:14:39 words in this chapter: 1573     Lewis Lam and spread out to affect the poor. he can not help but be furious. the West China Province Department of Culture has always been blank checks nature can not be compared with the Communications Department. Hum, it can be really cattle. stared in surprise at the Wang Siyu Road East: King County.


Related articles:

 
Hi, very sorry for the late reply.


Faseeh, as I mention above, your formula works great. I did make a mistake, I should add OR in the IF part, not AND. I think I will use your solution, yet, I still looking for a way to know when to stop copying the formula in VBA. I think it should stop when it return 0 or BLANK (also, array formula takes quite a bit of the resource). I am dealing with hundreds thousand records in about 500 - 1000 files.


Btw, I came across a simple solution to SELECT NON BLANK CELL manually (which you can processed it using VBA later) by Rick Rothstein an Excel MVP for those who haven't know it already.


Here is another way to select the non-blank cells via the keyboard (it doesn’t matter if the first cell in the columns is blank or not); just execute the following keystrokes one after another (if you look at the screen when keying them in, you should get the idea why it works)…

Ctrl-f

* (an asterisk, which is keyed in using Shift-8)

Alt-i

Ctrl-a

Alt-F4
 
Back
Top