hi your query doesnt seem to be clear.... can u please mail the worksheet and clearly state what do you actually want
Thanks On Jul 17, 12:21 am, osiso <[email protected]> wrote: > Guys, > > I am not well versed in vba, more just excel functions. So I recorded > a macro where I typed in the if then statement shown below, and I have > a bunch of zeros that come up as a result. I have two questions: > > 1. is there a cleaner way to write the if then statement in vba? > 2. how can i delete the zeros and move the important numbers up? > > A B C > intro country01 country02 > 506,749,228 0 > 806,400,106 0 > 109,416,193 0 > 541,277,077 0 > 21,808,071 0 > 0 145,788,131 > 0 181,887,159 > 0 153,206,525 > 0 258,227,430 > 0 875,325,728 > 0 119,471,479 > > =IF('199705.csv'!$F2=B$1,'199705.csv'!$C2,0) > =if(file.csv country_code_cell=b$1, then enter file.csv population, > else 0) --~--~---------~--~----~------------~-------~--~----~ ---------------------------------------------------------------------------------- Some important links for excel users: 1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at http://www.excelitems.com 2. Excel tutorials at http://www.excel-macros.blogspot.com 3. Learn VBA Macros at http://www.vbamacros.blogspot.com 4. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to [email protected] If you find any spam message in the group, please send an email to: Ayush Jain @ [email protected] or Ashish Jain @ [email protected] <><><><><><><><><><><><><><><><><><><><><><> HELP US GROW !! We reach over 5,000 subscribers worldwide and receive many nice notes about the learning and support from the group. Our goal is to have 10,000 subscribers by the end of 2009. Let friends and co-workers know they can subscribe to group at http://groups.google.com/group/excel-macros/subscribe -~----------~----~----~----~------~----~------~--~---
