+ Reply to Thread
Results 1 to 3 of 3

Issues Transferring Inventory Data

  1. #1
    Registered User
    Join Date
    03-04-2015
    Location
    Howell, NJ
    MS-Off Ver
    Microsot Office 2010
    Posts
    2

    Issues Transferring Inventory Data

    I have an inventory table listing equipment for different areas. I also have Control Logs for each area that pulls that areas designated equipment from the Inventory Table. Each area has its own set of equipment (i.e. Area 1 has 1-A, 1-B, 1-C...; Area 2 has 2-A, 2-B, 2-C...) but certain equipment is either missing (designated by a blank cell) or is damaged (designated by an X). How can I get the Area Control Logs to list all the available equipment in a column while skipping over the blanks and the X's in a single column?
    Right now, the Area Control Logs show the inventory list as:
    1-A
    1-B
    X
    1-D

    1-F

    I would like it to show on the Area Control Logs like this:
    1-A
    1-B
    1-D
    1-F

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Issues Transferring Inventory Data

    Hi, welcome to the forum

    If your data looks something like this...
    A
    B
    1
    1-A 1-A
    2
    1-B 1-B
    3
    X X
    4
    1-D 1-D
    5
    1-F
    6
    1-F

    B1=IFERROR(INDEX($A$1:$A$6,SMALL(IF(NOT(ISBLANK($A$1:$A$6)),ROW($A$1:$A$6)),ROWS($A$1:A1))),"")
    If your data starts in row 2, then adjust ROW($A$1:$A$6) to ROW($A$1:$A$6)-1 etc
    This is an ARRAY formula ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Issues Transferring Inventory Data

    Assuming the data of interest always starts with a number.

    Data Range
    A
    B
    1
    Area
    Area
    2
    1-A
    1-A
    3
    1-B
    1-B
    4
    X
    1-D
    5
    1-D
    1-F
    6
    7
    1-F


    This array formula** entered in B2:

    =IFERROR(INDEX(A:A,SMALL(IF(ISNUMBER(-LEFT(A$2:A$7)),ROW(A$2:A$7)),ROWS(B$2:B2))),"")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Copy down until you get blanks.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Replies: 0
    Last Post: 09-24-2014, 04:09 PM
  2. Replies: 1
    Last Post: 06-01-2014, 09:02 PM
  3. Replies: 12
    Last Post: 04-30-2013, 05:40 PM
  4. Formatting Issues with Inventory Spreadsheet
    By IsleTurbo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-25-2011, 01:32 PM
  5. Inventory Stock Balancing with Inventory Data
    By bingbangboom in forum Excel General
    Replies: 2
    Last Post: 01-30-2011, 11:06 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