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

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
56,632
Office Version
  1. 365
Platform
  1. Windows
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)),"")
 
Solution

costata

New Member
Joined
Mar 28, 2021
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Thanks, it works perfectly with the example I've suggested.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
56,632
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.
 

Watch MrExcel Video

Forum statistics

Threads
1,129,730
Messages
5,638,031
Members
417,000
Latest member
JasonWilliam

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
Top