TresRing
New Member
- Joined
- Sep 12, 2017
- Messages
- 16
I looked through past questions but did not find a question or solution that completely matched what I need.
I need a macro that will throw an error IF any cell in column B is populated AND any other cell in that row is blank. It can't be coded into the cell directly because the data will be entered (pasted) into the worksheet from a different place and the formula would be overwritten. The worksheet will be around 4000 lines, so too error-prone and time consuming to manually scan for missing data.
For example, in this table each row has one blank cell.
[TABLE="class: grid, width: 300, align: left"]
<tbody>[TR]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[TD]D
[/TD]
[TD]E
[/TD]
[/TR]
[TR]
[TD]ID
[/TD]
[TD]Activity
[/TD]
[TD]Date
[/TD]
[TD]Variance
[/TD]
[TD]Metric
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]B4590F
[/TD]
[TD]2/1/17
[/TD]
[TD]44
[/TD]
[TD]PR
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]CF550D
[/TD]
[TD][/TD]
[TD]32
[/TD]
[TD]MP
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]UM553W
[/TD]
[TD]8/14/17
[/TD]
[TD][/TD]
[TD]FS
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]4T67DP
[/TD]
[TD]10/2/17
[/TD]
[TD]12
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
What I need to do is throw a pop-up that says there's an error for every row that has B populated but has a blank cell in rows A, C, D, and/or E.
I don't even know how to start. Thanks so much to you Excel gurus!!!
I need a macro that will throw an error IF any cell in column B is populated AND any other cell in that row is blank. It can't be coded into the cell directly because the data will be entered (pasted) into the worksheet from a different place and the formula would be overwritten. The worksheet will be around 4000 lines, so too error-prone and time consuming to manually scan for missing data.
For example, in this table each row has one blank cell.
[TABLE="class: grid, width: 300, align: left"]
<tbody>[TR]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[TD]D
[/TD]
[TD]E
[/TD]
[/TR]
[TR]
[TD]ID
[/TD]
[TD]Activity
[/TD]
[TD]Date
[/TD]
[TD]Variance
[/TD]
[TD]Metric
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]B4590F
[/TD]
[TD]2/1/17
[/TD]
[TD]44
[/TD]
[TD]PR
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]CF550D
[/TD]
[TD][/TD]
[TD]32
[/TD]
[TD]MP
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]UM553W
[/TD]
[TD]8/14/17
[/TD]
[TD][/TD]
[TD]FS
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]4T67DP
[/TD]
[TD]10/2/17
[/TD]
[TD]12
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
What I need to do is throw a pop-up that says there's an error for every row that has B populated but has a blank cell in rows A, C, D, and/or E.
I don't even know how to start. Thanks so much to you Excel gurus!!!