Adding data to columns

astridcita

New Member
Joined
Jun 11, 2012
Messages
24
Hi,
I have a question, I have an excel (2010) with name and I withdraw data from another sheet under each name, this is the formula I use

=IF('Tasks by Group'!$B:$B = "Fred",'Tasks by Group'!$A:$A,"")

The problem is that I don’t want empty cells in between the data.

Right now I have

Fred
Maria
Paulina
Banners

Banners
Search
Promote









Search
Banners
Promote


<tbody>
</tbody>

Here is the result I want.

Fred
Maria
Paulina
Banners
Promote
Banners
Search
Promote
Search
Banners












<tbody>
</tbody>

How do I do that?

thanks!!!! :)
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Hi,

If I understand you correctly, does this work for you?....

Sample data...

Excel Workbook
ABC
1Data1Data2
2BannersFred
3BannersPaulina
4BannersFred
5BlackBob
6BlueTim
7BrownBen
8PinkBill
9PromoteMaria
10PromoteMaria
11RedTom
12SearchFred
13SearchPaulina
14YellowTod
15
Tasks by Group


Example results....

Excel Workbook
ABCD
1FredMariaPaulina
2BannersPromoteBanners
3BannersPromoteSearch
4Search
5
Results


The formula in A2 needs entering with ctrl shift enter NOT just enter, it can then be copied across and down.
You can change the cell references to suit your layout.

I hope that helps.

Ak
 
Upvote 0

Forum statistics

Threads
1,202,914
Messages
6,052,532
Members
444,590
Latest member
GCLee

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top