Data Compare And Update Based On Condition

Jan 29, 2009

I have a spreadsheet with ~35k rows of data. This isn't too easy to explain I have the following data (example).

User Name Employee ID Data Level Jan 08 Feb 08 March 08 etc.
Jo Bloggs 12345 A1 1 1 0
Jo Bloggs 12345 A2 1 1 0
Mark Jones 89101 A1 1 1
Mark Jones 89101 A2 0 1

For each user with data level A1 I wish to add an X if the same user has a corresponding data level of A2 so the result should be,

User Name Employee ID Data Level Jan 08 Feb 08 March 08 etc.
Jo Bloggs 12345 A1 X X 0
Jo Bloggs 12345 A2 1 1 0
Mark Jones 89101 A1 1 X
Mark Jones 89101 A2 0 1

I would really love a formula or macro to be in existance that would save me from trawling through all this data and going blind.

View 9 Replies


ADVERTISEMENT

Compare Two Sheets And Update Prices Based On Item Code?

Jul 16, 2014

I have a price list from my supplier with the new prices.

I then have my Accounting software where I need to update the cost and retail prices. The problem I have is the Accounting software has allocated it`s own Unique ID for each item. So in order for me to bulk import this I need to keep this unique ID with the Actual Product ID together otherwise it will duplicate the product.

Here is a example

Sheet to be updated (Cost and Retail only) from PRICE LIST SHEET
Uneque ID
SKU

[Code].....

View 1 Replies View Related

Compare And Update Selected Data On Two Sheets

Feb 7, 2007

Each monday i get a new price list from our supplier. My job is to compare this list with ours and update if neccesary. The reason, why I'm writing here is simple -I need to automate the process. Since their and our pricelist is somewhat different, it's only possible to use selection comparison. So, I need something that can do this:

1. First I open those two files and make a selection on both of them (like all the apples on the supplier list and all the apples on our list)
2. Push a button that executes a code
3. The code compares a value in the first column
4. If it finds a match, compares the data in second column
5. If data is same, color the cell (or the text) lets say yellow
6. If data is different, update field in our pricelist and color the cell (lets say red), so I can find and recheck it later
7. If the supplier has a _new_ product, the code will insert it somewhere in our list. Doesn't matter where, it may as well be a new sheet
8. Compare the next cells in selected area

View 2 Replies View Related

Update Logic In Attached Macro To Include Condition To Check Data Not Existing

Mar 17, 2013

I have attached excel with the logic I am using, but I have a problem and needed logic to update to make sure it is not inserting same data (duplicate data).

Please update the logic so that if it is having same data in sheet 3 it should not insert or delete duplicate.

Code:
Public Sub CopyData()
Dim ws As Worksheet, bi As Byte, vData(1 To 9), bi1 As Byte, vData1(1 To 9), bi2 As Byte, vData2(1 To 9), bi3 As Byte, vData3(1 To 9), bi4 As Byte, vData4(1 To 9)
Set ws = Sheets("Sheet2")
For bi = 1 To 9

[Code] .........

View 3 Replies View Related

Update Data By Ado - Change/delete Data And Then Run Macro For Update Data In Source Spreadsheet

Dec 6, 2006

I have one source spreadsheet, where are columns NAME, DATE. I read these data by ADO to other spreadsheet, where I can change/delete data and then run macro for update data in source spreadsheet. The problem: In source spreadsheet is column "NAME" and column "DATE", with values e.g. "Joseph"; 1.1.1980. I read this data to other spreadsheet, then I delete in it value 1.1.1980. When I run macro Update, it messages error.

Sub UpdateItem
...
.Fields.Item(1).value = activecell 'activecell value = "Joseph"
If Not isempty(activecell.offset(0,1)) Then
.Fields.Item(2).value = activecell.offset(0,1).value
Else
.Fields.Item(2).value = "" 'I tried Empty and 0 too but when I read data again then, it displays 0.1.1900, nothing works
End If
...
End Sub

It seems that in source spreadsheet has data in column "Date" format Date and when I try to update data in format String ("") in source spreadsheet by Update macro, it messages error. When I used

.Fields.Item(2).Value = Empty
' or
.Fields.Item(2).Value = 0

after rereading data it displays 0.1.1900 What I want to get is that if the cell with date (in other spreadsheet) is empty, the cell in column Date in source spreadsheet after updating will be blank (contains no values).

View 2 Replies View Related

Printing Data Based On Condition

Mar 31, 2008

a way to select which ones to print based on the given condition. I have a store list, and on this list I provided the store number and their authorized vendors. I have a weekly spreadsheet that has all our vendors cost/retail changes. On this spreadsheet, the vendor numbers are on column A. I was hoping for something, like maybe provide the store number to print, and it will print only the vendors that that particular store carry... We have a total of 106 stores, so automating this process would definitely save us a lot of time.

View 9 Replies View Related

Update IF Condition With More Conditions

Jul 10, 2014

I am currently using the below formula and is trying to add a condition to this.

=IF(NETWORKDAYS(MAX(BI2,DATE(2014,6,1)),MIN(BJ2,DATE(2014,6,30)))<0,0,NETWORKDAYS(MAX(BI2,DATE(2014,6,1)),MIN(BJ2,DATE(2014,6,30))))

The condition i am trying to add is

If the result of the above formula is less than the value in cell BK2, then look if the number in B2 is available in sheet2 (another sheet) column B.

If the number in B2 is available in sheet2 coloumn B,then the result should be BK2.
If the number in B2 is not available in sheet2 coloumn B,then the result should be above mentioned formula which is =IF(NETWORKDAYS(MAX(BI2,DATE(2014,6,1)),MIN(BJ2,DATE(2014,6,30)))<0,0,NETWORKDAYS(MAX(BI2,DATE(2014,6,1)),MIN(BJ2,DATE(2014,6,30))))

View 2 Replies View Related

Update Cells Based On Date And Data Changes

Apr 8, 2009

Attached simplified sheet gives background - but need to update the cells in the aggregate monthly table C44:C55 based on data in single cell above, and according to the correct month. Need do this without the previous months data changing.

Month is determined by cell E8 and data to be updated to the agg month range is to come from cell C15. The month date will change automatically as will the data in C15.

View 10 Replies View Related

Duplicating Data Onto Another Workbook Based On A Condition

Nov 15, 2013

How to open a fresh workbook and have information automatically being pasted in, based on a checkbox trigger. I don't know if I have explained well or not but essentially it is this:

W5 is the checkbox with a tick and a cross. When the cell is ticked I want to specicy cells on this record to be brought over to another tab.

View 1 Replies View Related

IF Function To Retrieve Value From Set Of Data Based On Condition

Mar 28, 2012

I have huge set of data listing almost 20 columns and 400 rows..i am trying to apply a formula for one of them..

Condition: Onshore or Offshore

Data to be retrieved: list of locations at onshore and offshore

Result expected: If a particular cell is selected as onshore then allow user to select only Onsite locations same for offshore

View 1 Replies View Related

Filling Column Data Based On Condition

Nov 20, 2012

I have an excel sheet with 2 tabs. 1st tab provides the data for downtime of a manufacturing line. The last column (shift) is blank and needs to be filled based in shift schedule in tab2

On the 2nd tab I have the shift schedule, which tell which shift is working on particular days

Month
Date
7:00am- 7:00 pm
7:00pm - 7.00am

Feb
1
Shift A
Shift C

[Code] ........

Is it possible to write a macros that will look at the Date and time from tab 1 and assign the correct shift number in the shift column. For example the 1st row of tab 1 reads (Month=Feb, Date = 3:55:59 AM) so according to shift schedule it would fill C shift.

I have lots of data and to assign every event to shift # manually is not possible. So i wanted to know if there is a macros i can use to make life easier and learn at the same time

View 2 Replies View Related

Update Combo Box Source On A Condition

Dec 4, 2007

My userform has a combo box that upon entry event is populated via a sub procedure.

The sub procedure defines a column of data on the active spreadsheet as a range and manipulates the range to add unique values only in alphabetical order into a collection.

Which the collection is then used to Add.Items to the combo box.

The userform allows selection of an existing value from the combo box OR type a new value In (no formatting on value).

When combo box is exited and a further command button is pressed the value from the combo box is added to the spreadsheet.

However, I don't need to refresh the source values of the combo box upon EVERY entry as I currently do, ONLY when a NEW value has been typed in and added to the spreadsheet.

How can I (possible check index value ?) ensure when the user types in a new value, exits field and presses the command button is the ONLY time when the combo box source values need to be refreshed.

View 9 Replies View Related

Update Cell From Another Sheet If Condition Met

Jun 15, 2007

I have two worksheets. one has a list of formulas which i manually enter or change as time goes on. the other spread sheet has the same list of formulas, but I just chose which of those formulas I want to use frmo the drop down list provided to me by using the data validation of the other page. Each row that I enter by selecting the correct drop down options, i would chose a product name alogn with it. so its either Service or Fix. The question i ahve is, is it possible to adjust the manually entered formula and only have the formula rows where the service words are in another column but same row updated?

View 9 Replies View Related

Compare All Columns To First And Update

Jun 3, 2008

I receive hundreds of excels which I combine into one sheet for input into a program (which I don't know much about). The combined sheet contains 2 columns repeated with different information. For instance Column A is Category, Column B is Dollar Amount, Column C is Category,
Column D is Dollar Amount and so on.

I then start with Column A and compare it to Column C to make sure the categories match. If C is a new category (not listed in Column A) I shift columns A and B down one and add the new category to Column A. This updates my master list in column A but also maintain the format and correct dollar amount that was listed in Column B. Then I move to Column E and compare it to A using the same logic.

I repeat this process throughout hundreds of columns. I then delete all the category columns and am left with Column A as a master category list and all the dollar amounts in the correct location for all excels that have been sent in. I'm hoping someone here knows a faster way for me to do
this using VB or VBA for Excel or a Macro. I've tried a few things I've found on these forums to no avail, and I'm not an expert when it comes to this. This currently takes me days to complete, and I know it should not take this long. Please save my sanity!

View 9 Replies View Related

Equal Distribution Of Budget Data Based On Condition

May 6, 2014

I have written a code for equal distribution of Budget Data based on condition.

The user will enter annual budget number in Column K (highlighted in Green) and based on condition in Column N (highlighted in Yellow), the data will be divided by 12 and it need to be equally distributed from Colum P to Column AA. The condition for distribution is 'Y' (Yes)/ 'N' (No).

I have also attached the sample file.Budget_Input Form.xlsm

View 2 Replies View Related

Macro: Copy Data Based On Criteria/Condition

Oct 16, 2006

Attach is a sample of my project. I have to loop through B9:B80 in sheet("Raw Data") and capture the value of each cell. EG:

* if Value captured is 120A --> check with sheet("SP14F") from the row which contains the same value.

* i have to check that the aperture, outer and inner values of Layer 120A and so on..of the Raw Data sheet is the same as that of in the SP14F sheet.

* if the values are not the same, change the font to red

i understand that this task requires looping and arrays.

View 4 Replies View Related

Split Data In Multiple CSV Files Based On Condition

Jun 11, 2008

I have a few CSV files that sits in a folder ie C:/Data and I want to split the data in those files into different sheets. Each of those files contains rows of data with an account number. For example, I have 3 files that contains transactions and they have accounts "Orange", Apple, pear, I want to put all transations with account apple together and all Orange transaction together etc etc.

View 3 Replies View Related

Compare Columns In Two Workbooks & Update One

Dec 15, 2007

I have two workbooks, one is reference (W1), other is the one that needs update(W2). I need macro that compares reference column in W1 with targeting column in W2, then for match cells update two or more cells in same with new data from reference cells in W1, and for end to report what data in W1 in reference column wasnt find in W2. I tend to use macro in reference book W1, and to update book W2 without opening, so I need this macro to work just with file manager from excel . No need for user modul for targeting columns, they are static in both woorkbooks. In practise in W1 is invoice prices with part numbers, at other one is the same, but with prices for distribution (with formulas), I want ti automaticly refresh part numbers with new prices, an to have report what part numbers are not in price list (W2)

View 2 Replies View Related

Compare 2 Worksheets & Update Differences

Jun 7, 2008

We have a tariff table with the following data per row: Area code - Destination name - Price - and some other stuff that is not important. Once or twice a month we receive updates on Price for some destinations and maybe even some new rows with area codes and destination names that we do not have in our table. Can someone help me with a macro that will look into two sheets and do 2 operations:

1) taking as reference the Sheet2 - Column C (Price Tag) will update column C in Sheet1, using the Area Code (Column A) of both sheets as identifier to find to what row will apply the change;

2) if there is a new Area Code - Destination - etc. row that is not present in sheet1, will add it to sheet1

It does not matter to me if will update directly sheet1 or it will write the entire sheet1 content with the updates to Sheet3.

I am attaching a small example of of the sheets.

View 5 Replies View Related

Macro To Update Data Sheet Based On Entries From Another Worksheet

Mar 7, 2013

I have a worksheet designed to look like a form. That worksheet pulls data from an "Application Data" worksheet using INDEX and MATCH formulas. That part works great. The user enters an Application number on row 8 and it populates all of the other cells. In fact, in cell O7 (not pictured), I have it generating the row number the data came from (based on a MATCH function).

Here's my question--if they go in and change a value in one of the other cells, they should be able to press an "Update" button. That will then kick off a macro that goes to the "Application Data" sheet, finds the row that has the Application Number (from row 8) and updates the values based on what the user entered on this form.

How do I write the statement that selects the row based on the Application Number?

View 5 Replies View Related

VBA To Compare Worksheets; Update Certain Columns If A Match; Add New Row If Not

Jun 17, 2008

I would like a macro that can match column A & column B data of Worksheet(WeeklyJob) to column A & column B of Worksheet(Master) then if match is found copy column C through column F into Worksheet(Master) column C through F (and overwrite any [outdated] existing data there may be in those columns [thus updating the job's weekly charges, etc.]).
If match is not found I would like it to copy entire row from Worksheet(WeeklyJobs) into first blank row at end of Worksheet(Master) (thus giving me a new record of a new job from the weekly report).

All the columns in both worksheets are labeled the same (& row 1 is headings).

View 9 Replies View Related

Compare First Column(s) Of 2 Data Tables And Execute Procedure Based On Comparison

Sep 1, 2013

I have 2 Data tables in 2 sheets of the same workbook. I want to compare my column A of table 2 with column A of table 1 and delete any rows of table 2 where (column A of table 2 has a value which is not in the column A of table 1)

In Excel I used the Vlookup function and deleted any rows which had Error in result of the formula. May I know how to execute this in VB

View 3 Replies View Related

Update Time And Date When I Update Data Not When I Open A File

Sep 5, 2008

I have used the function = now() to have the most updated time but it updates a workbook when I open it in the first place. How I can avoid this?

View 9 Replies View Related

How To Count Condition Based On Having Another Condition

Apr 12, 2014

So I have one sheet that needs to pull data through to another sheet (which is a stats summary)

I have a drop down list containing 4 options all of which have to be counted separately on the stats summary sheet. However I only need them counted when a value is input in another cell in that row.

For example: I select option 1 from down down menu, but I only want this to be counted on the stats page when I enter a date in the "date" cell.

View 9 Replies View Related

Disable/enable A Cell Based On A Condition Which Is Dependent On Other Cell Data

Jan 26, 2007

how can we disable/enable a cell based on a condition which is dependent on other cell data

View 4 Replies View Related

Sum Based On Condition

Dec 15, 2009

I want to total column C, but only where column B contains certain data, like add column C where column b contains abd so that i get the answer 7, Hope ive explained it right.

B C
abd 1
abd 2
bmr 3
abd 4
crc 2
crc 3
bmr 2

View 2 Replies View Related

Update Based On Ranking

Jan 16, 2009

I have a customer spread sheet that uses a “Ranking” to establish the next “Contact Date” based on the “Ranking” and the “Last Contact Date”.

An example is – a “Customer” with an A “Ranking” would be contacted 21 days after the “Last Contact Date”, with a B “Ranking”, 28 days after the “Last Contact Date” etc.

Is there any way that the “Next Contact Date” can be automatically up dated when the “Ranking” is changed and there are multiple rankings (A, B,C, D etc)

View 3 Replies View Related

Set A Formula Based On Condition

Mar 22, 2009

I have a column called Average and it have numbers from 0 to 100. I want to set a string on another column based on the value of Average. The condition is

< 50 is negative
= 50 is neutral
> 50 is positive

For example
Column A Column B
45 Negative
50 Neutral
80 Positive

View 4 Replies View Related

Inserting Row Based On Condition

May 4, 2009

I want to insert a line wherever I encounter a number. I have a range of cells in column "A" with invoices listed and at the end of each customer I have the total. At the total line (the number) I want to insert a line. Right now I can't figure out how get the cell value to recognize a number from a non-number data type (bolded area)

View 5 Replies View Related

Insert Row Based On Condition

Aug 12, 2009

I would like to write a code, that can check the name of cell A1 with A2.

If A1=A2, then insert a blank row between these two rows.

I have started with a loop, but somehow it does not work.

Sub AddRows ()

Dim Row As Long
For Row = 1 To 3800

If Cells(Row, 1).Value = Cells(Row + 1, 1) Then
Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove

End If

Next Row

End Sub

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved