+ Reply to Thread
Results 1 to 12 of 12

Compare problem

  1. #1
    Registered User
    Join Date
    03-16-2016
    Location
    NZ
    MS-Off Ver
    2010
    Posts
    6

    Compare problem

    Hello
    Am new to excel and I have a compare problem
    Please find the screen shoot attached

    Would like to be able to compare the data and qty in columns F & H
    To count if there the right amount of data in A
    So if there right amount is in A to F&H it would flag up a green box some where
    Or give me idea that its ok and the same if the count is wrong and if the item
    Is not in A
    Basically I want to check the data in A to see if it correct to F & H and show up missing items in A
    And qty that are wrong
    Hope someone can shed some light how to do this
    Thanks
    compare.jpg

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,737

    Re: Compare problem

    rather than a picture can you load a sample sheet
    Please upload a sample of your workbook to the forum, Make sure you have removed any private information, remember this is a public forum and so available to anyone
    Would like to see an example of your data and also a manual mock up of the expected results you want to achieve.

    To attach a file to your post,
    click "Go advanced" (next to quick post),
    scroll down until you see "manage Attachments",
    click that and select "Choose File" (top Left corner).
    Find your file, click "Open" click "upload" click 'close windows" Top Right. click "Submit Reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    03-16-2016
    Location
    NZ
    MS-Off Ver
    2010
    Posts
    6

    Re: Compare problem

    please find attached
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: Compare problem

    I imagine that someone will come along shortly and give you a simpler solution. Until then however:
    Instead of writing a long formula I broke this down into several helper columns. The helper columns find the row of the first part number in each section, then the last row, then creates an index-able array of those rows in column F, then returns a 1 if the part number in column B is found in that array or a 0 if not. Next it creates an index-able array of those rows in column H, returns the amounts for the indexed parts found in column H and finally True or False based on whether that amount matches the amount in column A. The conditional formatting rule itself is a simple:
    Please Login or Register  to view this content.
    Here is the file with the formulas and rule applied: Copy of etn162743 index indirect CF.xlsx
    Let me know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    03-16-2016
    Location
    NZ
    MS-Off Ver
    2010
    Posts
    6

    Re: Compare problem

    Sorry i attached the wrong book....this is the one from the screen shot

    will try to get the array to work in this one thanks
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: Compare problem

    Paste the following formula in E6 and copy down:
    Please Login or Register  to view this content.
    Here is a copy of the file from post #5 with the formula and conditional formatting applied: Copy of ETN162811.xls
    Let me know if you have any questions.

  7. #7
    Registered User
    Join Date
    03-16-2016
    Location
    NZ
    MS-Off Ver
    2010
    Posts
    6

    Re: Compare problem

    thanks very much that is prefect

    would it be possbile to check if the items in A dont exist in the F now and flag them up

    thanks

  8. #8
    Registered User
    Join Date
    03-16-2016
    Location
    NZ
    MS-Off Ver
    2010
    Posts
    6

    Re: Compare problem

    thanks very much that is prefect

    would it be possbile to check if the items in A dont exist in the F now and flag them up

    thanks

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: Compare problem

    Modify the formula for E6 and down as follows:
    Please Login or Register  to view this content.
    Add a conditional formatting rule =E6="None" (red).
    Here is a copy of the the file with the modified formula and added rule applied: Copy of ETN162811.xls
    Let me know if you have any questions.

  10. #10
    Registered User
    Join Date
    03-16-2016
    Location
    NZ
    MS-Off Ver
    2010
    Posts
    6

    Re: Compare problem

    Thanks very much again

    How can i flag up the items in A Column which aren’t in the F column

    Need to double check to see if i need the items from the MODEL BOM in the ISF BOM

    Hope this makes sense? as you can see i did it manual ....example (MISSING IN BOM)

  11. #11
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: Compare problem

    Put the following formula in D2:
    Please Login or Register  to view this content.
    Select the range A2:A117 then put the following rule in conditional formatting (use a formula to determine which cells to format): =D2="Missing in BOM" (Pink)
    Here is a copy of the file with the formula and rule applied: Copy of ETN162811.xls
    Let me know if you have any questions.

  12. #12
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Compare problem

    Maybe these will be of help to you. Enter in D2 and fill down to check column A against column F
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    To check column F against column A, enter this in K6 and fill down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Need to compare multiple values including TIME between, and compare rate
    By fourmurphys in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-21-2014, 04:37 PM
  2. Compare pairs of columns problem
    By Danny00115 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-28-2013, 03:48 PM
  3. [SOLVED] I have a If(Compare(and)) problem PICTURE INSIDE!
    By Kartoffelmos in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-26-2013, 10:13 AM
  4. Compare two columns problem
    By ciki022 in forum Excel General
    Replies: 2
    Last Post: 01-14-2013, 09:17 AM
  5. compare and merge tables problem
    By snowathlete in forum Excel General
    Replies: 0
    Last Post: 07-14-2012, 11:55 AM
  6. New problem for macro Compare two workbooks
    By ronlau123 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-25-2011, 12:44 AM
  7. Compare dates VBA problem
    By Potoroo in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-29-2007, 09:39 PM
  8. [SOLVED] Problem with code. (Compare all cells)
    By Metrazal in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-10-2006, 03:34 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1