Drag formula while skipping cells that meet condition, and continue from the same place

costata

New Member
Joined
Mar 28, 2021
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi,

I want to drag a formula down so some of reference number will change each cell as I go done.
But, I want to add certain rule (like if condition) and skip some of the cells, yet continue after from the last cell that met the condition.

For example:

1617024592720.png


When I drag the formula from B1 down, I want it to show the value "b" in cell B3, and the value "c" in cell B5 so on.


Thanks!
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
How about
+Fluff 1.xlsm
ABC
11aa
22 b
31bc
42 d
51ce
62 f
71dg
82 h
91ei
102 j
111fk
122 l
Summary
Cell Formulas
RangeFormula
B1:B12B1=IF(A1=1,INDEX($C$1:$C$12,COUNTIFS(A$1:A1,1)),"")
 
Upvote 0
Solution
Thanks, it works perfectly with the example I've suggested.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,353
Messages
6,124,463
Members
449,163
Latest member
kshealy

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