+ Reply to Thread
Results 1 to 6 of 6

vlookup with counting? does this need to be done with Arrays?

  1. #1
    Registered User
    Join Date
    05-09-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    13

    vlookup with counting? does this need to be done with Arrays?

    Hello,

    Gotta say love this forum - i thought i understood excel formulae quite well until I came here

    Basically, for the D&D campaign I DM, i've been creating and editing an excel based character sheet we use but the methods i used to track bonuses, items, etc was too cumbersome & took too much space. Now trying to find better ways to do it and running into lots of problems since it appears regular nested vlookups, hlookups, concatenates, counts, and Ifs just won't cut it.

    In the inventory table for players, they could have a bunch of items. I'm trying to find specific "properties" on items but the property could be anywhere.

    I found this here: =VLOOKUP("*"&A48&"*",Page3!$G$3:$R$121,1,FALSE))

    while I know vlookup, i didn't know we could add wildcards. Now, this helped me partially but since vlookup only returns the first instance it finds, that still doesn't help.

    I tried: =COUNTIF(Page3!$G$3:$R$45,VLOOKUP("*"&A49&"*",Page3!$G$3:$R$121,1,FALSE)) but that's totally wrong and this (from another forum): =SMALL(IF(Page3!$G$3:$R$121=$A$48,ROW(Page3!$G$3:$R$121)),ROW(1:1)) but i think this finds exact matches

    The issue i have:

    a player's character could have in table @ (Page3!$G$3:$R$121):

    Ring of Wizardry I
    Ring of Wizardry III
    Amulet of Wizardry II
    Wizardry I Plate Armour of Speed

    since Wizardry is a property keyword and the roman numeric after it denotes it's benefit (and that # is the same benefit), if i could count the total instances of each type of Wizardry property the player has on his gear, i could then apply basic formulae (that i know!) to add whatever i need to add elsewhere.

    My result from above should be:

    Wizardry I = 2
    Wizardry III = 1
    Wizardry II = 1

    Any ideas/thoughts? Am i even close/on the right track? I'm thinking I may need array formulae, but i really just don't get them. the solutions I see the problems here; many of the crazy formulae are like Latin or Sanskrit it appears

    Regards,

    Sanjay

  2. #2
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,843

    Re: vlookup with counting? does this need to be done with Arrays?

    Something like this?
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  3. #3
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Cool Re: vlookup with counting? does this need to be done with Arrays?

    Check the solution..
    and Tell if that is what you were trying to achieve..
    Check the attached file..
    Attached Files Attached Files
    Regards,
    Vikas Gautam
    Excel-buzz.blogspot.com

    Excel is not a matter of Experience, its a matter of Application.

    Say Thanks, Click * Add Reputation

  4. #4
    Registered User
    Join Date
    05-09-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: vlookup with counting? does this need to be done with Arrays?

    yes exactly..thanks. the first solution seemed very simple. should have figured that out. the second also works ...so need to assess @ home and decide which to use...

    Thanks both.

  5. #5
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,843

    Re: vlookup with counting? does this need to be done with Arrays?

    Ah, good point Vikas! Roman numbers makes it difficult, the formula will find Wiz II inside of Wiz III. Depending on how many roman numbers you have you can either use this updated workbook or you can use my old workbook but use Ctrl + h to replace all the roman numbers with regular numbers first. You have to start with the big numbers ofcourse, otherwise you will run into the same problem again.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    05-09-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: vlookup with counting? does this need to be done with Arrays?

    To get around this ibcoded sheet to use numerics instead of Roman numerals. Easier for players as well... Thanks guy s.

    Sanjay

+ 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] counting number of times a value does not appear in a multiple named arrays
    By greyscale in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 01-22-2013, 11:39 PM
  2. Counting conditions in arrays
    By Steven Fleck in forum Excel General
    Replies: 1
    Last Post: 12-04-2007, 04:10 PM
  3. Using vlookup for two table arrays
    By harvindersingh1 in forum Excel General
    Replies: 3
    Last Post: 04-21-2007, 06:43 AM
  4. Using Vlookup in formula arrays
    By BartDesc in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  5. [SOLVED] Using Vlookup in formula arrays
    By BartDesc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-03-2005, 12:05 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