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

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.

trimmjens

New Member
Joined
Oct 26, 2012
Messages
44
Hi,

I don't understand how "Batch" and "On-Off" can be the same. "Batch" is a number and "On-Off" is text.
 

Excelmancan

New Member
Joined
Jun 27, 2010
Messages
32
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".

 

Forum statistics

Threads
1,148,293
Messages
5,745,931
Members
423,985
Latest member
sayed manzar

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