Quantcast
Channel: Excel IT Pro Discussions forum
Viewing all articles
Browse latest Browse all 11829

Vba macro code for generating years along the side of days and also by removing the months name and the empty cells from column A

$
0
0

Respected Sir / Madam,
Please do help me with the VBA macros code for generating the output given in the attached excel sheet.

I need the output to be like this. that is,
1) the months must be removed and
2) in the left side, i must get the years till its end. and finally,
3) the empty cells has to be removed. (since in few months we don’t have 31 days and i had yellowed the part for your easy understanding).

pls generate code to give output like this.. please help me...  Like this I have to do for 65 files…

In excel sheet it will be given as, ( in this yellow part are only empty cells and months name which has to removed)

1936

Jan

0

0

0

0

0

0

0

0

0

0

0

0

Fev

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

 

 

Mar

0

0

0

0

0

0

0

0

0

Avr

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

 

Mai

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

expected output is:

  like this it goes on...  till 2004 years .. like this I have to do for 65 files... 

final output

1936

0

1936

0

1936

0

1936

50

1936

0

1936

0

1936

39

1936

0

1936

0

1936

0

1936

0

1936

0

1936

0

1936

0

1936

0

1936

205

1936

0

1936

19

1936

0

1936

0

1936

0

1936

0

1936

112

1936

65

1936

0

1936

0

1936

0

1936

0

1936

122

1936

0

1936

0

1936

0


please oblige and do the needful.. I need it very urgently...
Thanks & Regards,
Dharani.

PS.,

I DONT KNOW HOW TO ATTACH THE EXCEL SHEET EITH THIS THREAD... IF THERE IS PROVIOSN TO DO THAT PLEASE DO TELL ME ... BECAUSE IF I WOULD ESCEL SHEET IT WILL VERY MUSCH EASIER TO UNDERSTND ABOUT MY QUERY WHAT I M TRYAING TO ASK....


Viewing all articles
Browse latest Browse all 11829

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>