Insert five cells right if cell value

Chance_HEOR

New Member
Joined
Sep 24, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hello everyone - this will be my first post here, so I apologize if it's basic. I am trying to model a medicine that is dosed in the following schedule:

1632538448083.png


It has a five-month effectiveness, so would like another referring table to show this (I did this manually):

1632538412697.png

I tried an array, which spilled since I had to write the formula into every grey cell. I tried to refer to the upper sheet and tried many variations around =IF(SUM(D14:D21)<5,1,0) or IFS(AND...) I'm a beginner at VBA but is this the only way to run this? The rest of the model works very smoothly and is dynamic except for this part. Any help would be much appreciated!
 

Attachments

  • 1632538114409.png
    1632538114409.png
    81.5 KB · Views: 8

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Hi, thanks for replying. What I'm trying to do is use Table #1 (which fills dynamically from another page) to fill out Table #2. Table #2 should have 5 cells to the right of every cell with a 1 in it.
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,187
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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