+ Reply to Thread
Results 1 to 7 of 7

Use (LEFT(A4;FIND(" ";A4)-1) to count stock sold

  1. #1
    Registered User
    Join Date
    03-15-2014
    Location
    portugal
    MS-Off Ver
    Excel 2003
    Posts
    61

    Use (LEFT(A4;FIND(" ";A4)-1) to count stock sold

    right now i'm using this formula to refer A4 first word, that word it's actually a code. "R034".

    =IFERROR(VLOOKUP(LEFT(A4;FIND(" ";A4)-1);[templateInventory2014.xlsx]Inventory!$A$7:$F$601;3;FALSE);"")


    I want to use similar formula but to count +1 every time R034 it's referred. like on the above formula "(LEFT(A4;FIND(" ";A4)-1)"


    Because on the cell i have also other data: "R034 telecom switch"

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Use (LEFT(A4;FIND(" ";A4)-1) to count stock sold

    It would be better to understand the issue if you upload a sample workbook with enough sample data in it along with the expected output as well.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Registered User
    Join Date
    03-15-2014
    Location
    portugal
    MS-Off Ver
    Excel 2003
    Posts
    61

    Re: Use (LEFT(A4;FIND(" ";A4)-1) to count stock sold

    Quote Originally Posted by sktneer View Post
    It would be better to understand the issue if you upload a sample workbook with enough sample data in it along with the expected output as well.

    Hi.

    Here is a sample.

    I want K to count +1 when J code is referred on the left first word(code) of the cell.

    I have a similar formula working on a workbook but i can't put it to work on this one.

    =IFERROR(VLOOKUP(LEFT(A4;FIND(" ";A4)-1);[templateInventory2014.xlsx]Inventory!$A$7:$F$601;3;FALSE);"")


    TemplateSales2014excelforum.xlsx
    Last edited by Luther.King; 04-02-2014 at 06:07 AM.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Use (LEFT(A4;FIND(" ";A4)-1) to count stock sold

    try
    =SUMPRODUCT(--(ISNUMBER(SEARCH(J4;$A$4:$A$20))))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Use (LEFT(A4;FIND(" ";A4)-1) to count stock sold

    Another variation......

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    03-15-2014
    Location
    portugal
    MS-Off Ver
    Excel 2003
    Posts
    61

    Re: Use (LEFT(A4;FIND(" ";A4)-1) to count stock sold

    Quote Originally Posted by martindwilson View Post
    try
    =SUMPRODUCT(--(ISNUMBER(SEARCH(J4;$A$4:$A$20))))

    Worked very well thank's.


    Now what if i want to refer not just to $A$4:$A$235 but to other worksheet with 12 sheets representing the 12 month of a year?

    Data it's in the same place, codes are on $A$4:$A$235 for all sheet months.

    I tried like this but doesn't work, shows "0"

    =SUMPRODUCT(--(ISNUMBER(SEARCH(A7;[Sales2014.xlsx]January:December!$A$4:$A$1720))))

  7. #7
    Registered User
    Join Date
    03-15-2014
    Location
    portugal
    MS-Off Ver
    Excel 2003
    Posts
    61

    Re: Use (LEFT(A4;FIND(" ";A4)-1) to count stock sold

    Quote Originally Posted by sktneer View Post
    Another variation......

    Please Login or Register  to view this content.
    Sorry, what should be instead "*"?

+ 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. Adding multiple "find" with "left" /"Right"
    By Daniel1 in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 02-22-2014, 04:33 PM
  2. "left" , "right" or "mid" a range then find
    By dwx in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-09-2013, 10:15 AM
  3. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  4. Find "Total" and move one cell to left and copy down information
    By adgjqetuo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-29-2009, 02:03 PM
  5. Replies: 5
    Last Post: 06-26-2006, 09:23 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