+ Reply to Thread
Results 1 to 17 of 17

Show Value for Match w/2 Cell Conditions

  1. #1
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Austin
    Posts
    660

    Show Value for Match w/2 Cell Conditions

    In my example booklet. I've got two sheets.
    Sheet 1 has 9 inputs (rows) from 5 sources: A,B,C,D,E (columns)
    Sheet 1 also has flag columns to match inputs based upon similiar values (names) in description columns.

    Sheet 2 - has two tables,
    first table matches values of different sources w/ similiar descriptions
    onto the same row.

    table two: displays, min. value for each row in first table.

    In the last column (P) of table 2, I'd like to have the descriptions (from sheet1) for the min value being displayed in the table(sheet2), Values for the Descriptions will come from one of these columns, C,L,U,AD,AM , depending
    on min value from either columns E,N,W,AF,AO on sheet1 or min value
    being display in table 1 or 2 on sheet 2. I don't know what information
    is easier to reference.

    The two conditions to consider would be: the value in the flags column for the source with the lowest value (from sheet1) ,is display on the row where the equivalent flag value is found on Sheet2 ,columnA

    and description of the item with min value be >0.

    I think a formula would have to incorporate both match and If functions.
    How, I don't know.
    Can anyone help me with a formula that will do this?

    tia,

    bdb
    Attached Files Attached Files
    Last edited by bdb1974; 02-24-2009 at 01:12 PM.

  2. #2
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Austin
    Posts
    660

    Re: Show Value for Match w/2 Cell Conditions

    Is there a way to express the formula below that works?
    The code alone will not work.
    Please Login or Register  to view this content.
    If the preceeding, is shortened and it's included into a match where, values in column A sheet matches value in either columns I,R,AA,AJ,AS, a min value

    then, the value, I need would be in the column offset 6, from the cell in either columns I,R,AA,AJ,AS , and on the same row.

    I know all this sounds crazy , but I don't know how else to describe the value I'm seeking.

    Maybe simplier terms would be to say

    First seek MATCH
    Sheet2 columnA with Sheet1, columns E,N,W,AF,AO
    , Then find Min Value from,
    (columns I,R,AA,AJ,AS),
    when found then show value in 4 cells to the left from cell w/ min value

    The formula would be in each cell of column P of sheet2 where columnA of
    sheet2 has a value to match.

    any help would be much appreciated.

    thanks,

    bdb
    Last edited by bdb1974; 02-18-2009 at 11:55 AM.

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

    Re: Show Value for Match w/2 Cell Conditions

    I have to confess I'm struggling to follow.... as is would the below at least be returning the correct results for P5 based on the values already present (assume fixed for now)

    Please Login or Register  to view this content.
    It seems however that the rows in the INDEX may need to be dynamic... but to understand that I need to understand the spreadsheet and on that front I must confess that I am struggling.... it seems you're trying to list Sheet1 on Sheet2 on the basis of column I on sheet1, is that correct ?

    If so I suspect you could simplify Sheet2 Column B...

    Please Login or Register  to view this content.
    Let us know.

  4. #4
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Austin
    Posts
    660

    Re: Show Value for Match w/2 Cell Conditions

    Wow, That's pretty close to what I need in Column P.

    Only problem is, the row of value from sheet 1 is also determined
    by the values in columns I,R,AA,AJ,AS.

    I made a mistake in my statement below which probably lead to your confusion.

    , Then find Min Value from,
    (columns I,R,AA,AJ,AS),
    This is the correct logic/method:

    Find, all values in (columns I,R,AA,AJ,AS) Sheet1
    matching values in (columnA) Sheet2.

    From matching values,
    Find Min Value (4 cells to left) of matching values.

    From min values
    Find value (2 cells to left).

    Results should be in column P of sheet2 of each row with matching value.

    Any help appreciated.

    Thanks,

    bdb
    Last edited by bdb1974; 02-19-2009 at 10:45 AM.

  5. #5
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Austin
    Posts
    660

    Re: Show Value for Match w/2 Cell Conditions

    I'm not real sure how the following formula works:
    Please Login or Register  to view this content.
    I'm think, if it finds a value in columns j4-n4 then it finds a match on sheet
    for the same row.

    If I make a small little change, in the columns for the index

    Please Login or Register  to view this content.
    Ummm, still not quite there, It doesn't know what column corresponds to the min Value column. Any help is appreciated.

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

    Re: Show Value for Match w/2 Cell Conditions

    Why don't you post up another sample file that reflects where you are now and more importantly detail your "expected results" - this may alleviate some of the confusion... I couldn't really follow the initial upload and there were no expected results listed so it was difficult to understand exactly what you were trying to achieve...

    As it stands it all sounds a little convoluted... nothing in life is this complex ;-)

  7. #7
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Austin
    Posts
    660

    Re: Show Value for Match w/2 Cell Conditions

    In my example booklet, you'll see, on sheet 2,column P,the results.
    ColumnQ, shows if the result is Correct. ColumnR shows which cell
    in column P the result should show.

    Since it was clear as mud, I hope now it's crystal clear..

    Thanks,

    bdb
    Attached Files Attached Files

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

    Re: Show Value for Match w/2 Cell Conditions

    So out of idle curiosity does this work ?
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Austin
    Posts
    660

    Re: Show Value for Match w/2 Cell Conditions

    DonkeyOte,

    GollieeeGEEWizzzz, I think you got !!!!!!!
    I've played around with it a little and it appears to be working!

    ----Awh Oh,

    One thing, needs to be done, Has to work only If MIN VALUES are >0.
    It is giving back #N/A for blank cells that corresponds w/ 0, or blank prices.

    Soooooooooooooo close.

    bdb
    Last edited by bdb1974; 02-20-2009 at 07:22 PM.

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

    Re: Show Value for Match w/2 Cell Conditions

    bdb1974, reply as a new post if you want people to be notified - I looked at this thread by accident and saw your edit... otherwise I'd not have come across it.

    I don't understand where your #NA values are coming from - the file I provided shouldn't generate any such values... I painstakingly went through and reworked your old formulae to remove them from the output sheet... if you're not using the formulae I provided I'm afraid I can't help.

    If the issue is in Column I - ie that Client should return Client for MIN value in C:H excluding values <=0 then adapt such that:

    Please Login or Register  to view this content.
    J:P should update accordingly.
    Last edited by DonkeyOte; 02-21-2009 at 11:27 AM.

  11. #11
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Austin
    Posts
    660

    Re: Show Value for Match w/2 Cell Conditions

    Donkey Otes

    Thanks for your efforts so far. I really appreciate the time you've put forth to help me get this to work. However, it is still not functioning correctly.

    I'm attaching a new example booklet to show the output results in column P of sheet2. Column L of sheet 2 shows whether the result is correct or wrong. Column M of sheet 2 show what the correct result should be.

    any help is greatly appreciated.
    Thanks,

    bdb
    Attached Files Attached Files

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

    Re: Show Value for Match w/2 Cell Conditions

    You say "it's" not working but again this is not the same file as used previously, for example column I on Sheet2 (listing client) has disappeared and this was used elsewhere -- it's very hard when there's no consistency in the files with each question...

    On a more pertinent note you don't explain why the results as detailed in R should be as listed... but based on my interpretation of your present formulae in C:H I suspect the below works for you:

    Please Login or Register  to view this content.
    On an aside, as mentioned before I think, I would alter the MIN formulae in J:O such that you do not require arrays:

    Please Login or Register  to view this content.
    On a final note given my new interpretation of what you're doing I'm not sure what value B on Sheet2 holds ... surely you need a column B for each column C:G given in reality B only relates to column C (seemingly).

  13. #13
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Austin
    Posts
    660

    Re: Show Value for Match w/2 Cell Conditions

    The file name mabe different but the format and concept is the same.
    Sheet2:
    As for column R, R is only showing what the value should be in column P.
    Column B is My description of an item. (taken from sheet 1,ColumnB).
    Column P should show the Vendors given description for the lowest price out of the 5 vendors listed (A,B,C,D,E). The vendors description listed in column P , should be taken from sheet 1.

    As for the 2nd formula you posted, I could not get it to work. I tried it on the
    first 2 rows. I would favor using it over an array so, I can created a list box
    for the min values and vendors names (which is in column I).

    Thanks again for you help.
    I think this should clear up any confusion.

    I'm posting another example file. As you will see only the theme varies. And
    the amount of row. Columns and outputs should be the same.

    bdb
    Attached Files Attached Files

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

    Re: Show Value for Match w/2 Cell Conditions

    Why should P5 on Sheet2 be "Yellow E" (as per Correct answers in R) ... the lowest value for Rank 0 in C:H is 1, the value 1 belongs to group "A" ... 0 for group "A" appears in I4 on sheet1 ... the corresponding value associated with I4 is C4 is it not, thus the correct answer should be "Orange A".

    If the above is not the case then at this point I concede I can't help further because I can't follow your logic.

    The last file doesn't even use the formulas I gave you on the last post... I'm going to withdraw from this thread I'm afraid as I'm tired of repeating myself over and over both in terms of my narrative and my solutions...
    Last edited by DonkeyOte; 02-24-2009 at 11:36 AM.

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

    Re: Show Value for Match w/2 Cell Conditions

    My last post on this as I note I inadvertently referenced row 2 on my last formula post rather than 5.

    First clear all formulae from J5:P56

    Copy & Paste the below into Sheet2!J5:

    Please Login or Register  to view this content.
    Copy the formula and apply to J5:O56


    Copy & Paste the below into Sheet2!P5

    Please Login or Register  to view this content.
    Copy & paste formula across range P5:P56


    None of the above formulae are arrays therefore they do not require CTRL + SHIFT + ENTER

  16. #16
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Austin
    Posts
    660

    Re: Show Value for Match w/2 Cell Conditions

    My mistake on row 5, as Yellow E the answer. I confer, YellowA is correct.
    However, if you go to row 14,and 15. These are the rows with the issues.

    Row 14, P14, should not be DogsE, the correct answer should be tacosE.
    Row 15, P15, should not be 0, the correct answer should be dogsE.

  17. #17
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Austin
    Posts
    660

    Re: Show Value for Match w/2 Cell Conditions

    Thanks, DonkeyOte,

    I've used the formulas you provided on the last post.
    Following the instructions precisely w/ the formulas seem to working!!!!

    thanks again,

    bdb

+ 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