ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Do I need a formula or Macro? (https://www.excelbanter.com/excel-worksheet-functions/34640-do-i-need-formula-macro.html)

Sharen

Do I need a formula or Macro?
 
I want to create a formula or a Macro that will do the following: Look in
cell F2, if it's blank, look one cell to the right, if it contains a value,
copy the value in F1 into J2 followed by the data in F2

CLR

Put this in J2

=IF(AND(F2="",G2<""),F1&F2,"ConditionNotSpecified ")

Of course, if the formula works, then it is because there is nothing in F2
to copy to J2...........

Vaya con Dios,
Chuck, CABGx3


"Sharen" wrote in message
...
I want to create a formula or a Macro that will do the following: Look in
cell F2, if it's blank, look one cell to the right, if it contains a

value,
copy the value in F1 into J2 followed by the data in F2




Anne Troy

Try this formula in J2, Sharen:

=if(isblank(F2),G2,F1&" "&F2)

*******************
~Anne Troy

www.OfficeArticles.com
www.MyExpertsOnline.com


"Sharen" wrote in message
...
I want to create a formula or a Macro that will do the following: Look in
cell F2, if it's blank, look one cell to the right, if it contains a

value,
copy the value in F1 into J2 followed by the data in F2





All times are GMT +1. The time now is 10:27 AM.

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