Posts by CaulfieldS

    Re: VLOOKUP return multiple values


    Currently A3 is populated by one name, with nothing below it. My issue is that i was able to put the formula above into a worksheet in my 2003 excel. populate a table using column F filled with names, Column G filled with items, and column H filled with order dates. However when i try to move the "search area" from column "F" to another column lets say column "L" i dont get any results and i cant figure out why.

    Re: VLOOKUP return multiple values


    So i was able to make the following work for me


    =OFFSET(F1,SMALL(IF(F2:F5000=A3,ROW(F2:F5000)-ROW(INDEX(F2:F5000,1,1))+1),ROW()-2),COLUMN()-1)


    note im using excel 2003!


    However for some reason i cannot seem to adjust the formula to search a new table, my end goal is to have this formula on "sheet 1" searching for text on "sheet 1" in a table on "sheet 2", but again im stuck at even shifting from one table to another on the same page

    Re: VLOOKUP return multiple values


    Hey Richadj4, turns out the version of excel on my work computer is the cause for that formula not working, just loaded my book on my personal laptop and tried that code with excel 2016 and works perfect.

    Re: Search table return multiple value's


    I attempted this formula two ways, altering to fit my spreadsheet with no luck, as well as altering my spreadsheet to mimic my table above again with no luck. is it worth noting that im running excel 2003? (13 year old program i know, but it's suiting my needs for work)

    Re: Search table return multiple value's


    So with this formula i can alter "5000" down to the actual size of the table ill be searching through, as even when the table gets altered it will not get any larger than what it is? if i then want to return the time value i change the 2 in bold?($F$2:$F$5000,1,1))+1),ROW()-2),COLUMN()-1),"")
    or would it be one of the "1's" ?


    What do you mean by dynamic ranges instead of absolute addresses? if you have time to explain i have the time to learn something new.


    Thank you for all your help Richadj4 i will be entering this into my workbook shortly to test out.

    Re: Search table return multiple value's



    Thank you for your reply, i have not ventured into using VBA's as of yet, this may be the tipping point in starting to learn and use them. to answer your questions,


    1) the text im searching against (a3) will only show up in column AI, one set of answers im looking for will be in column AJ, i intend to adapt whatever answer i get to also get text from AK.
    2) im not sure i understand? if your refering to the maximum number of results probably no more then two or three.
    3) Column AI through AK is a populated directly from another worksheet, so i dont believe (at my novice level) that i can sort.
    4) my original hope was a formula based solution, but like i mentioned before that if this is the tipping point to getting into VBA's so be it


    now for some sample data



    [TABLE="width: 500"]

    [tr]


    [td][/td]


    [td]

    Column A

    [/td]


    [td]

    column b

    [/td]


    [td]

    column c

    [/td]


    [td]

    column d

    [/td]


    [td]

    skip

    [/td]


    [td]

    column AI

    [/td]


    [td]

    column AJ

    [/td]


    [td]

    column AK

    [/td]


    [/tr]


    [tr]


    [td]

    1

    [/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td]

    Names

    [/td]


    [td]

    Horse

    [/td]


    [td]

    Time

    [/td]


    [/tr]


    [tr]


    [td]

    2

    [/td]


    [td]

    Name

    [/td]


    [td]

    Horse

    [/td]


    [td]

    Time

    [/td]


    [td][/td]


    [td][/td]


    [td]

    Jane

    [/td]


    [td]

    Shilo

    [/td]


    [td]

    8:30

    [/td]


    [/tr]


    [tr]


    [td]

    3

    [/td]


    [td]

    Jane

    [/td]


    [td]

    Shilo

    [/td]


    [td]

    8:30

    [/td]


    [td][/td]


    [td][/td]


    [td]

    John

    [/td]


    [td]

    Medoro

    [/td]


    [td]

    9:15

    [/td]


    [/tr]


    [tr]


    [td]

    4

    [/td]


    [td][/td]


    [td]

    George

    [/td]


    [td]

    10:00

    [/td]


    [td][/td]


    [td][/td]


    [td]

    Jane

    [/td]


    [td]

    George

    [/td]


    [td]

    10:00

    [/td]


    [/tr]


    [tr]


    [td]

    5

    [/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td]

    Joe

    [/td]


    [td]

    Fidoro

    [/td]


    [td]

    10:45

    [/td]


    [/tr]


    [/TABLE]


    So my ideal situation A3 is populated from another worksheet, the same goes for AI2:AK5. Thus triggering b3:c5 to get populated by all instances where A3 is found in AI2:AK5


    Hope this information helps! Thanks again for the help

    Hey everyone, im looking to create a group of cells to search a table and return what it finds, in my case there may be multiple results.


    here is the formula im using that searches the table for text in a certain cell then returns text from the cell next to the keyword


    =IF(ISNA(VLOOKUP(a3, ai2:ak34, 2, FALSE)),"",VLOOKUP(a3, ai2:ak34, 2, FALSE))


    a3= desired search keyword
    ai:ak34 = the table i want to search
    2=what column in the table i want the search to return with


    like i mentioned my issue comes down to when the text in "a3" is mentioned more than once, the only answer i get is the first one it finds, and in my case it would be inconvenient to break down the table and make multiple searches.


    Thank you in advance

    Re: Trying to retrieve Data over multiple Rows and Columns


    Look at each formula, when you copy, move formula's they get altered automatically, you may have to go back into each cell and change where it searches. The best way i have found to do this is to go into "formula Auditing mode" copy all the cells you need to fix the formula from, then open up notepad paste, then manually edit everything, copy again and paste back into the first cell.

    [TABLE="width: 500"]

    [tr]


    [td][/td]


    [td]

    A

    [/td]


    [td]

    B

    [/td]


    [td]

    C

    [/td]


    [/tr]


    [tr]


    [td][/td]


    [td]

    Horse

    [/td]


    [td]

    Rider

    [/td]


    [td]

    Time

    [/td]


    [/tr]


    [tr]


    [td]

    1

    [/td]


    [td]

    Lucky

    [/td]


    [td]

    John

    [/td]


    [td]

    12:45

    [/td]


    [/tr]


    [tr]


    [td]

    2

    [/td]


    [td]

    Venus

    [/td]


    [td]

    Jane

    [/td]


    [td]

    1:45

    [/td]


    [/tr]


    [tr]


    [td]

    3

    [/td]


    [td]

    Zelda

    [/td]


    [td]

    Joe

    [/td]


    [td]

    2:15

    [/td]


    [/tr]


    [/TABLE]



    Im making a scheduling workbook, my current task im trying to accomplish involves organising ride times for horses. Column 1 Contains Horses, Column B riders, and C time. In my scenario if a student is riding they get on the horse 15 minutes prior to the time, if the trainer is riding he gets on at the set time in column C. Can someone help devise a formula that if cells in column B does not contain the word "John" to subtract 15 minutes from the adjoining cell in column C.


    At the point of the document where i will be adding this formula, each cell if populated from another cell in the worksheet. so the cells actually look as such.


    [TABLE="width: 500"]

    [tr]


    [td][/td]


    [td]

    Horse

    [/td]


    [td]

    Rider

    [/td]


    [td]

    Time

    [/td]


    [/tr]


    [tr]


    [td]

    1

    [/td]


    [td]

    lucky

    [/td]


    [td]

    =bb60

    [/td]


    [td]

    =bd60

    [/td]


    [/tr]


    [tr]


    [td]

    2

    [/td]


    [td]

    venus

    [/td]


    [td]

    =bb61

    [/td]


    [td]

    =bd61

    [/td]


    [/tr]


    [tr]


    [td]

    3

    [/td]


    [td]

    zelda

    [/td]


    [td]

    =bb62

    [/td]


    [td]

    =bd62

    [/td]


    [/tr]


    [/TABLE]



    Any help would be much appreciated, i attempted an =If() formula, and will continue to try make it work unless anyone can help.

    Re: Need some help


    Thanks alot Max. i will look into Working with a macro at a later point. For now the formula you gave will suffice.


    Quote from Max1616;762929

    You would have to add the developer tab onto your ribbon, open VBA, create a module and paste the code within the module. Then you can run the code from the developer tab on your ribbon when you click the "Macros" button. Or you can assign the Macro to a shortcut key.

    Re: Need some help


    the second formula works perfect! now just need to figure out how it works (ill do that on my own) what would running a macro entail?

    Re: Need some help


    =IF(LEN(TRIM(E4))<>0,B4,"") brought over all the names of those who paid, im looking for th eopposite, the names of those who didnt pay, also when it brought the names over it would leave blank cells, for instance it would bring "jane" to I3 and "Larry" to I7, when i would like it to bring b2, b4,b5, b6, b8, etc etc to column i without empty cells



    [TABLE="width: 500"]

    [tr]


    [td]

    a

    [/td]


    [td]

    b

    [/td]


    [td]

    c

    [/td]


    [td]

    d

    [/td]


    [td]

    e

    [/td]


    [td]

    f

    [/td]


    [td]

    g

    [/td]


    [td]

    h

    [/td]


    [td]

    i

    [/td]


    [/tr]


    [tr]


    [td]

    1

    [/td]


    [td]

    Name

    [/td]


    [td]

    CHK #

    [/td]


    [td]

    Amount Due

    [/td]


    [td]

    Amount Paid

    [/td]


    [td][/td]


    [td]

    Projected gross

    [/td]


    [td]

    Received gross

    [/td]


    [td]

    Still owe

    [/td]


    [/tr]


    [tr]


    [td]

    2

    [/td]


    [td]

    john

    [/td]


    [td][/td]


    [td]

    $xxx,xxx

    [/td]


    [td][/td]


    [td][/td]


    [td]

    $x,xxx,xxx.xx

    [/td]


    [td]

    $xxx,xxx.xx

    [/td]


    [td]

    john

    [/td]


    [/tr]


    [tr]


    [td]

    3

    [/td]


    [td]

    jane

    [/td]


    [td]

    xxx

    [/td]


    [td]

    $xxx,xxx

    [/td]


    [td]

    $xxx,xxx

    [/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td]

    bob

    [/td]


    [/tr]


    [tr]


    [td]

    4

    [/td]


    [td]

    bob

    [/td]


    [td][/td]


    [td]

    $xxx,xxx

    [/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td]

    billy

    [/td]


    [/tr]


    [tr]


    [td]

    5

    [/td]


    [td]

    billy

    [/td]


    [td][/td]


    [td]

    $xxx,xxx

    [/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td]

    lisa

    [/td]


    [/tr]


    [tr]


    [td]

    6

    [/td]


    [td]

    lisa

    [/td]


    [td][/td]


    [td]

    $xxx,xxx

    [/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td]

    etc

    [/td]


    [/tr]


    [tr]


    [td]

    7

    [/td]


    [td]

    larry

    [/td]


    [td]

    xxxx

    [/td]


    [td]

    $xxx,xxx

    [/td]


    [td]

    $xxx,xxx

    [/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td]

    etc

    [/td]


    [/tr]


    [tr]


    [td]

    8

    [/td]


    [td]

    etc

    [/td]


    [td][/td]


    [td]

    $xxx,xxx

    [/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [/tr]


    [tr]


    [td]

    9

    [/td]


    [td]

    etc

    [/td]


    [td][/td]


    [td]

    $xxx,xxx

    [/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [/tr]


    [tr]


    [td]

    10

    [/td]


    [td]

    etc

    [/td]


    [td]

    xxxxx

    [/td]


    [td]

    $xxx,xxx

    [/td]


    [td]

    $xxx,xxx

    [/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [/tr]


    [tr]


    [td]

    11

    [/td]


    [td]

    etc

    [/td]


    [td]

    xxx

    [/td]


    [td]

    $xxx,xxx

    [/td]


    [td]

    $xxx,xxx

    [/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [/tr]


    [tr]


    [td]

    12

    [/td]


    [td]

    etc

    [/td]


    [td][/td]


    [td]

    $xxx,xxx

    [/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [/tr]


    [tr]


    [td]

    13

    [/td]


    [td]

    etc

    [/td]


    [td][/td]


    [td]

    $xxx,xxx

    [/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [/tr]


    [tr]


    [td]

    14

    [/td]


    [td][/td]


    [td][/td]


    [td]

    $xxx,xxx

    [/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [/tr]


    [tr]


    [td]

    15

    [/td]


    [td][/td]


    [td][/td]


    [td]

    $xxx,xxx

    [/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [/tr]


    [tr]


    [td]

    16

    [/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [/tr]


    [tr]


    [td]

    17

    [/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [/tr]


    [tr]


    [td]

    18

    [/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [/tr]


    [tr]


    [td]

    19

    [/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [/tr]


    [tr]


    [td]

    20

    [/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [/tr]


    [tr]


    [td]

    21

    [/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [/tr]


    [tr]


    [td]

    22

    [/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [/tr]


    [tr]


    [td]

    23

    [/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [/tr]


    [tr]


    [td]

    24

    [/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [/tr]


    [tr]


    [td]

    25

    [/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [/tr]


    [tr]


    [td]

    26

    [/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [/tr]


    [tr]


    [td]

    27

    [/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [/tr]


    [tr]


    [td]

    28

    [/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [td][/td]


    [/tr]


    [/TABLE]

    Re: Need some help


    Quote from Max1616;762910

    You can place this in Cell I4 and drag it down:
    =IF(LEN(TRIM(E4))<>0,B4,"")


    that formula brought back the names of those who paid, instead of the names of those who havent paid. and to add to the difficulty is it possible to consolidate as well? so instead of dragging the names straight across it starts with the list and doesnt leave open cells. its a long shot but would be beneficial.