Macro to find, pull and input data into a different spreadsheet

docjackson33

New Member
Joined
Feb 7, 2010
Messages
18
Hello All,

My issue is doing analysis w/in a tight timeline, and before that can be done, the Main spreadsheet must first be updated by hand. Being that this spread sheet is comprised of over 50 different MOS types, x6 companies, it becomes very tedeous and time consuming. I have finally added a formula that will pull the additional gains =COUNTIF('Gains'!$D$2:$D$30,A11) and losses =COUNTIF('Losses'!$D$2:$D$8,A2) (from different tabs) into this spreadsheet. My goal is to have a macro do this, because there may be a variable that would cause me to remove the formula from that cell. I've attempted to use jeanie and show the 3 phases of my head ache, but no avail. Sorry, here's what I need. I need the macro to look in the "gains tab" to find all of the MOS(s) listed in the "MOS" column, by "Unit", by "Report Dt" (note: this is the date format20100616). With that, I need it need only grab MOS(s) w/in 120 days of the present month, eg. there are x3 21B, but only two have a report date before Nov 10 or 20101116, so it will go to the "Main spreadsheet" find the apropriate "Unit", and "MOS"(21B, 74D, etc) and input the number 2 in the gains column under the apropriate company and to the right of that MOS. And then repeat the same action for the "Loss" tab and column. I hope this is understandable.

Thanks in advance...

Jonathan

"Living the Army Dream"
 

Forum statistics

Threads
1,082,276
Messages
5,364,195
Members
400,786
Latest member
ismi88

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top