how to add "numbers and ad" with some condition in same cells

Vishaal

Well-known Member
Joined
Mar 16, 2019
Messages
533
Office Version
  1. 2010
  2. 2007
Platform
  1. Windows
  2. Web
Hi,

Please check the following and update how can we do that

Sample data

Excel 2010 32 bit
A
B
C
D
E
1
Sample​
2
3
4
5
6
1​
7
2​
8
3​
9
4​
Yes​
10
5​
Yes​
11
6​
Yes​
Yes​
12
7​
Yes​
Yes​
13
8​
Yes​
Yes​
14
9​
Yes​
15
10​
Yes​
16
11​
17
12​
18
13​
19
14​
20
15​
21
Sheet: Sheet1

Result Data

Excel 2010 32 bit
A
B
C
D
E
1
Result in same cells B6:D20​
2
3
4
5
6
1​
7
2​
8
3​
9
4​
Yes 5​
10
5​
Yes 4​
11
6​
Yes 3​
Yes 5​
12
7​
Yes 2​
Yes 4​
13
8​
Yes 1​
Yes 3​
14
9​
Yes Ad​
Yes 2​
15
10​
Yes Ad​
Yes 1​
16
11​
Yes Ad​
Yes Ad​
17
12​
Yes Ad​
Yes Ad​
18
13​
Yes Ad​
Yes Ad​
19
14​
Yes Ad​
Yes Ad​
20
15​
Yes Ad​
Yes Ad​
21
Sheet: Sheet1


help pls
 
Last edited:
In your first example you put it in column B starting in cell B6, now you started in cell A8.Could you indicate where the macro should start?
 
Upvote 0

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Thanks DanteAmor Ji,

great work,

thanks for quick update on my query

thank you very much
 
Upvote 0

Forum statistics

Threads
1,214,908
Messages
6,122,186
Members
449,071
Latest member
cdnMech

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