redspanna
Well-known Member
- Joined
- Jul 27, 2005
- Messages
- 1,604
- Office Version
- 365
- Platform
- Windows
Can someone help with code that will look down range B1:B50 and when a minus sum is found, delete that cell and the adjacent value in column A, then remove those blank cells. Not remove entire row - just blank cells in columns A:B
example
[table="width: 150, class: grid"]
[tr]
[td]Test 1[/td]
[td]200[/td]
[/tr]
[tr]
[td]Test 2[/td]
[td]-300[/td]
[/tr]
[tr]
[td]Test 3[/td]
[td]1345[/td]
[/tr]
[/table]
would result after code...
[table="width: 150, class: grid"]
[tr]
[td]Test 1[/td]
[td]200[/td]
[/tr]
[tr]
[td]Test 3[/td]
[td]1345[/td]
[/tr]
[/table]
Thanks in advnce
example
[table="width: 150, class: grid"]
[tr]
[td]Test 1[/td]
[td]200[/td]
[/tr]
[tr]
[td]Test 2[/td]
[td]-300[/td]
[/tr]
[tr]
[td]Test 3[/td]
[td]1345[/td]
[/tr]
[/table]
would result after code...
[table="width: 150, class: grid"]
[tr]
[td]Test 1[/td]
[td]200[/td]
[/tr]
[tr]
[td]Test 3[/td]
[td]1345[/td]
[/tr]
[/table]
Thanks in advnce