+ Reply to Thread
Results 1 to 11 of 11

Inventory Excel Challenge

  1. #1
    Registered User
    Join Date
    12-08-2014
    Location
    Edmonton,Alberta
    MS-Off Ver
    MS Office 2013
    Posts
    6

    Inventory Excel Challenge

    Hello everyone,

    I have a challenging question if anyone would be able to answer it, I`d really appreciate it

    So I have an Excel sheet with different TABS

    for example

    I have Sheet 1 - CARS

    Sheet 2- TIRES



    Now if in Sheet 1 I have a car in 1 cell and the tire in another cell s

    e.g.

    Description Tire 1 Tire 2 Tire 3 Tire 4

    Honda Civic Tire 112 Tire 113 Tire 114 Tire 115


    Tire 112, Tire 113, Tire 114 .. are serial numbers of Tires being Pulled from Sheet 2.


    Now I want to make it happen in such a way that if some tires are being used by Sheet 1 then

    in Sheet 2, I would see the tires as highlighted red, green, yellow or something appended to it saying these tires are available or not available.


    Any ideas ? ?

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Inventory Excel Challenge

    Sounds simple enough. Could you upload an example workbook (Go Advanced>Manage Attachments)
    Is sheet 2 an inventory sheet of how many of each type of tire you have? Is there anything on sheet 2 that says certain tires can only be used with certain cars? How is sheet1 pulling data from sheet 2?
    After you answer those questions, I might retract my "simple" statement.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    12-08-2014
    Location
    Edmonton,Alberta
    MS-Off Ver
    MS Office 2013
    Posts
    6

    Re: Inventory Excel Challenge

    Hello ChemistB,

    Thank you for your reply. I just wanted this to be a sample case explaining the situation, but attached is the Excel sheet I am working with

    so if you notice in this one,


    If you got to Unit # sheet , it is pulling in data from all other sheets

    Now if you go to Engine Sheet you will see in Column M , that there are Engine S/N, which is the exact field being called by the Unit sheet , I want to make it such that this column gets highlighted or turns red or something if duplicate values are found.

    I have summarized the algorithm as follows :

    I want to compare COLUMN M of Sheet Engines to Column E of Sheet Unit #, and if a Duplicate value is found than , Column M (Cell value gets highlighted) .

    Thank you very much for your help.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    12-08-2014
    Location
    Edmonton,Alberta
    MS-Off Ver
    MS Office 2013
    Posts
    6

    Re: Inventory Excel Challenge

    COUNTIF formula can also be used to check for duplicates, but it checks CONDITIONS based on SINGLE RANGE, not multiple RANGES.

    What do you suggest ?

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Inventory Excel Challenge

    Yes, In Conditional Formatting, with M2:M48 selected, >New Rule>Use Formula

    =COUNTIF('Unit #'!$E:$E, M2)>0
    format red
    will turn any Engine number in Engines M red if it appears in Unit # Col E
    Is that what you are looking for? or do you want different colors for appears 1, 2, 3, 4 times in E?

  6. #6
    Registered User
    Join Date
    12-08-2014
    Location
    Edmonton,Alberta
    MS-Off Ver
    MS Office 2013
    Posts
    6

    Re: Inventory Excel Challenge

    ok so this formula is comparing COLUMN E of Unit # sheet, and COLUMN M of Engine sheet but its comparing only with a single cell M2 ( the formula cannot be dragged down to all cells as it is built in conditional formatting ) ,

    But I can create this formula in another COLUMN parallel and put this formula there =COUNTIF('Unit #'!$E:$E, M2)>0 ( but I don`t understand what this formula is doing ? is it COUNTING the values in M2 in Comparison with COLUMN E of Engines ? if Yes than it needs to be greater than 2 right ?

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Inventory Excel Challenge

    It is counting how many times the number in M2 is occurring in Col E of the other sheet. If you just want it to occur once, then maybe

    =COUNTIF('Unit #'!$E:$E, M2)=1 format green
    and
    =COUNTIF('Unit #'!$E:$E, M2)>1 format red? I would use Conditional formatting rather than a separate column.

  8. #8
    Registered User
    Join Date
    12-08-2014
    Location
    Edmonton,Alberta
    MS-Off Ver
    MS Office 2013
    Posts
    6

    Re: Inventory Excel Challenge

    This is only Checking condition on cell M2 , and is returning true, as the formula is not extendable in Conditional Formatting to match all cells in COLUMN M.

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

    Re: Inventory Excel Challenge

    I used two helper columns on the engines worksheet (BA and BB) with a countif formula in each to count the occurrences of each engine in both worksheets. The conditional formula checks to see if there is a value >1 in either column and colours the cell red with yellow print for duplicated values.
    Attached Files Attached Files
    <---------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

  10. #10
    Registered User
    Join Date
    12-08-2014
    Location
    Edmonton,Alberta
    MS-Off Ver
    MS Office 2013
    Posts
    6

    Re: Inventory Excel Challenge

    Hello Billy,

    Thank you for your reply, appreciate your efforts.

    Yes the helpers are checking condition separately on each column to check if those columns have duplicate values in them,

    but the condition we need to check is that if both columns have the same value,

    the GIST of the problem is that if an engine is being used by Unit # sheet, then it highlights the cell with a color in the Engines sheet.

    Thank you,
    Syed

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

    Re: Inventory Excel Challenge

    That is a different problem. If the engine # is in both lists then the engine # will be highlighted. This could have been done with 1 helper column but you asked to have the check both ways....check all numbers in one column against all numbers in the other column.
    Attached Files Attached Files
    Last edited by newdoverman; 12-08-2014 at 07:13 PM.

+ 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. Excel Challenge. Please help.
    By letsgetrich in forum Excel General
    Replies: 1
    Last Post: 07-20-2009, 03:18 PM
  2. Excel Challenge
    By vicmartin in forum Excel General
    Replies: 3
    Last Post: 03-20-2009, 02:37 AM
  3. Inventory Totalling Challenge
    By Martin Barret in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-01-2007, 09:43 AM
  4. Excel vs 123 Challenge
    By jdelayknee in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-09-2006, 08:32 PM
  5. A new excel challenge
    By Nick Danger in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-13-2005, 02:05 PM

Tags for this Thread

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