Awesome, it works!
However, I have a follow-up question. It is very similar to the one above.
In another Excel project, there are usually monthly benefits data that are filled out within multiple columns. In my coding, I ask it to create a new column (see yellow highlight column below), and fill out a Vlookup formula (using the SSN as my lookup value). However, the amount of people in the file changes month to month, and since I do not know what the limit was, I simply ask the Vlookup formula to go two times above the amount of data (e.g. there's roughly 600 people average per month, but I ask Vlookup to look for 2000 cells because you would never know if there are WAY more people the next month that could go way above 600).
Now, obviously the cells that does not have any corresponding data in the same row will issue a #N/A error. However, due to the nature of the Vlookup, it's possible that a few rows that DOES contain corresponding data will also get the #N/A error, which I do not want to delete (I will simply make manual changes to get the row's data accurate).
For visual aid:
[TABLE="width: 994"]
<colgroup><col width="215" style="width: 161pt; mso-width-source: userset; mso-width-alt: 7862;" span="2"> <col width="172" style="width: 129pt; mso-width-source: userset; mso-width-alt: 6290;"> <col width="172" style="width: 129pt; mso-width-source: userset; mso-width-alt: 6290;" span="2"> <col width="113" style="width: 85pt; mso-width-source: userset; mso-width-alt: 4132;"> <col width="73" style="width: 55pt; mso-width-source: userset; mso-width-alt: 2669;"> <col width="126" style="width: 95pt; mso-width-source: userset; mso-width-alt: 4608;"> <col width="66" style="width: 50pt; mso-width-source: userset; mso-width-alt: 2413;"> <tbody>[TR]
[TD="width: 215, bgcolor: transparent, align: right"][/TD]
[TD="width: 215, bgcolor: transparent"] xxx-xx-0833[/TD]
[TD="width: 172, bgcolor: transparent"]THOMAS, MICHAEL[/TD]
[TD="class: xl63, width: 172, bgcolor: yellow"]3170[/TD]
[TD="class: xl63, width: 172, bgcolor: yellow"]COI[/TD]
[TD="width: 113, bgcolor: transparent"][/TD]
[TD="width: 73, bgcolor: transparent"]Cancer[/TD]
[TD="width: 126, bgcolor: transparent, align: right"]24.9[/TD]
[TD="width: 66, bgcolor: transparent, align: right"]24.9[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"] [/TD]
[TD="bgcolor: transparent"] xxx-xx-0191[/TD]
[TD="bgcolor: transparent"]THOMAS, SCOTT[/TD]
[TD="class: xl63, bgcolor: yellow"]3225[/TD]
[TD="class: xl63, bgcolor: yellow"]COI[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]Accident[/TD]
[TD="bgcolor: transparent, align: right"]26.33[/TD]
[TD="bgcolor: transparent, align: right"]26.33[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"][/TD]
[TD="bgcolor: transparent"] xxx-xx-9027[/TD]
[TD="bgcolor: transparent"]THORNTON, TATIANA[/TD]
[TD="class: xl63, bgcolor: yellow"]3160[/TD]
[TD="class: xl63, bgcolor: yellow"]COI[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]Accident[/TD]
[TD="bgcolor: transparent, align: right"]11.31[/TD]
[TD="bgcolor: transparent, align: right"]11.31[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"][/TD]
[TD="bgcolor: transparent"] xxx-xx-4156[/TD]
[TD="bgcolor: transparent"]TUCKER, JHAN[/TD]
[TD="class: xl63, bgcolor: yellow"]#N/A[/TD]
[TD="class: xl63, bgcolor: yellow"]#N/A[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]Accident[/TD]
[TD="bgcolor: transparent, align: right"]11.31[/TD]
[TD="bgcolor: transparent, align: right"]11.31[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"][/TD]
[TD="bgcolor: transparent"] xxx-xx-9327[/TD]
[TD="bgcolor: transparent"]UN, AMANDA[/TD]
[TD="class: xl63, bgcolor: yellow"]3435[/TD]
[TD="class: xl63, bgcolor: yellow"]COI[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]Cancer[/TD]
[TD="bgcolor: transparent, align: right"]27.08[/TD]
[TD="bgcolor: transparent, align: right"]27.08[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"][/TD]
[TD="bgcolor: transparent"] xxx-xx-3523[/TD]
[TD="bgcolor: transparent"]VANN, WENDIE[/TD]
[TD="class: xl63, bgcolor: yellow"]#N/A[/TD]
[TD="class: xl63, bgcolor: yellow"]#N/A[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]Cancer[/TD]
[TD="bgcolor: transparent, align: right"]24.9[/TD]
[TD="bgcolor: transparent, align: right"]24.9[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"][/TD]
[TD="bgcolor: transparent"] xxx-xx-2773[/TD]
[TD="bgcolor: transparent"]WASHINGTON, SYLVIA[/TD]
[TD="class: xl63, bgcolor: yellow"]3435[/TD]
[TD="class: xl63, bgcolor: yellow"]COI[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]Accident[/TD]
[TD="bgcolor: transparent, align: right"]21.99[/TD]
[TD="bgcolor: transparent, align: right"]21.99[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"][/TD]
[TD="bgcolor: transparent"] xxx-xx-8740[/TD]
[TD="bgcolor: transparent"]WILLIAMS, ASHANTI[/TD]
[TD="class: xl63, bgcolor: yellow"]#N/A[/TD]
[TD="class: xl63, bgcolor: yellow"]#N/A[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]Accident[/TD]
[TD="bgcolor: transparent, align: right"]11.31[/TD]
[TD="bgcolor: transparent, align: right"]11.31[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"][/TD]
[TD="bgcolor: transparent"] xxx-xx-5681[/TD]
[TD="bgcolor: transparent"]WILSON, CHRISTINA[/TD]
[TD="class: xl63, bgcolor: yellow"]3226[/TD]
[TD="class: xl63, bgcolor: yellow"]COI[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]Cancer[/TD]
[TD="bgcolor: transparent, align: right"]34.31[/TD]
[TD="bgcolor: transparent, align: right"]34.31[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"] [/TD]
[TD="bgcolor: transparent"] xxx-xx-7111[/TD]
[TD="bgcolor: transparent"]WRIGHT, TRINA[/TD]
[TD="class: xl63, bgcolor: yellow"]3435[/TD]
[TD="class: xl63, bgcolor: yellow"]COI[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]Accident[/TD]
[TD="bgcolor: transparent, align: right"]11.31[/TD]
[TD="bgcolor: transparent, align: right"]11.31[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"][/TD]
[TD="bgcolor: transparent"] xxx-xx-1354[/TD]
[TD="bgcolor: transparent"]YOUNGBLOOD, ALEXUS[/TD]
[TD="class: xl63, bgcolor: yellow"]3160[/TD]
[TD="class: xl63, bgcolor: yellow"]COI[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]Accident[/TD]
[TD="bgcolor: transparent, align: right"]11.31[/TD]
[TD="bgcolor: transparent, align: right"]11.31[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="class: xl63, bgcolor: yellow"] #N/A[/TD]
[TD="class: xl63, bgcolor: yellow"]#N/A[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="class: xl63, bgcolor: yellow"] #N/A[/TD]
[TD="class: xl63, bgcolor: yellow"]#N/A[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="class: xl63, bgcolor: yellow"] #N/A[/TD]
[TD="class: xl63, bgcolor: yellow"]#N/A [/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="class: xl63, bgcolor: yellow"] #N/A[/TD]
[TD="class: xl63, bgcolor: yellow"]#N/A [/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="class: xl63, bgcolor: yellow"] #N/A[/TD]
[TD="class: xl63, bgcolor: yellow"]#N/A [/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="class: xl63, bgcolor: yellow"] #N/A[/TD]
[TD="class: xl63, bgcolor: yellow"]#N/A[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
</tbody>[/TABLE]
My question is, similar to how was done in the post before, how do you delete any #N/A cells that do not have any corresponding info in the other columns along the same row, but keep the #N/A cells that does have corresponding info? Is there a work-around on that?
This will help me tons!
Thanks.