+ Reply to Thread
Results 1 to 7 of 7

Vlookup & Countif help

  1. #1
    Forum Contributor
    Join Date
    07-22-2008
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    2007
    Posts
    130

    Vlookup & Countif help

    Plz see the attachment. Can it be possible to get what I want.
    Following link is for ready reference for those who earlier solved my prob like that before.
    http://www.excelforum.com/excel-gene...umn-index.html
    Attached Files Attached Files
    Last edited by sumonrezadu; 01-25-2010 at 09:28 AM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Vlookup & Countif help

    Please describe the nature of your issue in the narrative of the post, not just in the attachment. This will make it easier for answerers as well as solution seekers to evaluate the contents of the thread.

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Vlookup & Countif help

    If you put this in C7 and copy down and across, the values appear to match your current sample values.

    =SUMPRODUCT(--(LEFT($B$28:$B$48,6)=LEFT($B7,6)),--($C$28:$C$48=C$6))

    Will that work for you?
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Forum Contributor
    Join Date
    07-22-2008
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    2007
    Posts
    130

    Re: Vlookup & Countif help

    Thx JBeaucaire. My prob is almost done but following prob still facing
    1. If B28 changes with LP 407 MINIBUS, D7 doesn't become Zero and D8 doesn't become 2. But look my total qty in F7 & F8 really changes.
    2. How can this formula recognize model similarity depicted in I19:I20
    3. My todays report may goes down beyond B28:C48 which I collect from Branch Office and paste here

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Vlookup & Countif help

    1) D7 shouldn't change when you change B28 to something else because C28 is "cash" so changing B28 will only change a value in column C above, the "cash" column.

    2) The formula is looking at the first 6 characters, so as long as the variations appear AFTER the first 6 characters, they will be considered matches.

    3) If the data range changes, be careful as you paste. Change the formulas to use a longer a "default" range of cells, maybe make it B28:B200...that should be sufficient, yes?

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Vlookup & Countif help

    Another option would be to adapt the possible solution you were given on the previous thread, ie:

    Please Login or Register  to view this content.
    the above uses the term in B7 and searches for all known variants thereof (as stipulated by table in I:L) in the main range B28:B60... the alteration from before is the addition of the Cash/Credit/Operator check.

  7. #7
    Forum Contributor
    Join Date
    07-22-2008
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    2007
    Posts
    130

    Re: Vlookup & Countif help

    Thanks, Thanks a lot JBeaucaire and DonkeyOte. You helped a great. Actually my understanding was wrong. JBeaucaire I am sorry for that. Thanks again so much.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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