ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   If Statement (https://www.excelbanter.com/excel-discussion-misc-queries/46065-if-statement.html)

Jeff

If Statement
 
I need help on an existing VBA formula:

In my spreadsheet €śConversion Validation Template Billable Jobs€ť row J3.
I want to do a vlookup on J3 that would look up the value in D3 in a
Table_Array spreadsheet €śVBAP€ť Col_Index_Num #3 IF AND ONLY IF the value in
rows of column B is: PY.

--
Regards,
Jeff


Vacation's Over

dim mycell as range

for each mycell in range(Cells(1,2), cells(1,2).end(xldown)")

if mycell.value = "PY" then

"CODE HERE "

end if
next mycell

"Jeff" wrote:

I need help on an existing VBA formula:

In my spreadsheet €śConversion Validation Template Billable Jobs€ť row J3.
I want to do a vlookup on J3 that would look up the value in D3 in a
Table_Array spreadsheet €śVBAP€ť Col_Index_Num #3 IF AND ONLY IF the value in
rows of column B is: PY.

--
Regards,
Jeff



All times are GMT +1. The time now is 07:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com