Macro or Formula

Excelmancan

New Member
Joined
Jun 27, 2010
Messages
32
This one is well beyond me.

Please refer to link https://ufile.io/o9kbq for small sample file.

Essentially…

- The source data is from columns A to C.
- The manipulated date (what I am looking for) is from column F to I.
- The source data has over 25,000 lines.

What I would like is for a macro (or formula) that would :

1. Place an “X” in column C when “Batch” and “On-Off” are the same with ONLY the highest number from both.
2. At the end of this, each “Batch” is to have an at least one ON or OFF in the “On-Off” column.
3. If no ON or OFF is missing from a batch a line is to be inserted with the On or OFF that is missing with a "0" - then an "X" in to be paced in column C.

I tried to be as clear as possible. I hope it makes sense.
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Hi,

I don't understand how "Batch" and "On-Off" can be the same. "Batch" is a number and "On-Off" is text.
 
Upvote 0
They are not the same.... Each "Batch" has a unique number. A minimum of 1 "On" and 1 "Off" will be included in each "Batch".

 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,269
Members
449,075
Latest member
staticfluids

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