Add blank row in data set IF no data exists

davie_aus

New Member
Joined
Jul 5, 2018
Messages
6
Hey guys,

Sorry, pretty new to this stuff so hopefully i can accurately describe what im trying to achieve.

I need to have 3 rows for each DAY/NIGHT to filter through to more functions. At times, i only have 1 value for this shift so will need to insert 2 new rows to make things balance. I would like to run a Macro to insert blank rows back into the dataset. Does this make sence and is it possible?

Thanks alot!

What i have:

Day/Night ShiftDate CodeValue
Day1/1/2018900
Day1/1/2018800
Night1/1/20181000
Night1/1/2018700
Night1/1/2018600
Day1/2/2018900
Night1/2/2018100
Night1/2/2018900
Day1/3/20181000
Night1/3/2018690

<tbody>
</tbody>

And this is what im trying to get:

Day/Night ShiftDate CodeValue
Day1/1/2018900
Day1/1/2018800
Night1/1/20181000
Night1/1/2018700
Night1/1/2018600
Day1/2/2018900
Night1/2/2018100
Night1/2/2018900
Day1/3/20181000
Night1/3/2018690

<tbody>
</tbody>
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
What i have:

Day/Night ShiftDate CodeValue
Day1/1/2018900
Day1/1/2018800
Night1/1/20181000
Night1/1/2018700
Night1/1/2018600
Day1/2/2018900
Night1/2/2018100
Night1/2/2018900
Day1/3/20181000
Night1/3/2018690

<tbody>
</tbody>

And this is what im trying to get:

Day/Night ShiftDate CodeValue
Day1/1/2018900
Day1/1/2018800
Night1/1/20181000
Night1/1/2018700
Night1/1/2018600
Day1/2/2018900
Night1/2/2018100
Night1/2/2018900
Day1/3/20181000
Night1/3/2018690

<tbody>
</tbody>
 
Upvote 0
Yes, thats correct.

The amount of rows will vary, up to a max of 168 rows if that makes a difference.

If you need anything else, please let me know!

Thanks
 
Upvote 0

Forum statistics

Threads
1,215,415
Messages
6,124,768
Members
449,187
Latest member
hermansoa

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