+ Reply to Thread
Results 1 to 11 of 11

Delivering Data Based on a table

  1. #1
    Registered User
    Join Date
    12-08-2010
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Delivering Data Based on a table

    I have a moderate level of Excel knowledge, but I'm really struggling to come up with a solution to how to create a formula for this. Hopefully someone will be kind enough to help.

    In column A I have a set of numbers 0-10 and in column B I have a set of numbers 0-10. I'm trying to find a way to get column C to associate with those numbers. So for example if column A1=5 and B1=4 I'd like C1 to read "$75". Or if column A1=5 and B1=0 I'd like C1 to read "$35". So it's not a basic IF statement. I'm really looking for about 27 possible outcomes and for excel to figure out the conditions of which of those 27 outcomes has been met and provide the corresponding response.

    Hopefully this isn't too confusing. Thanks for the help!
    Last edited by joekrebs; 12-13-2010 at 05:49 PM.

  2. #2
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Delivering Data Based on a table

    joekrebs,

    Welcome to the Excel Forum.

    Can we see your table?

    Please attach your workbook by clicking on the New Reply button, then scroll down and click on the Manage Attachments button.
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  3. #3
    Registered User
    Join Date
    12-08-2010
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Delivering Data Based on a table

    I am using the values on the "Carded & XBs Data" tab under columns CW and CX as the data I want to reference against the table. My table is on the tab "Values"

    CX should be compared against Column A on the Values Tab and CW should be compared against Column B on the Values Tab. When I get a True Value on A&B I want it to show the result of Column C on the Values Tab in Column CY of the "Carded & XBs Data" tab. Does that all make sense?
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Delivering Data Based on a table

    joekrebs,

    The formula in worksheet Carded & XBs Data, cell CY2 (confirmed with CTRL + SHIFT + ENTER, not just the ENTER key), then copied down:

    =IF(ISNA(INDEX(Values!$C$2:$C$28,MATCH(1,IF(Values!$A$2:$A$28=$CW2,IF(Values!$B$2:$B$28=$CX2,1)),0))),0,INDEX(Values!$C$2:$C$28,MATCH(1,IF(Values!$A$2:$A$28=$CW2,IF(Values!$B$2:$B$28=$CX2,1)),0)))


  5. #5
    Registered User
    Join Date
    12-08-2010
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Delivering Data Based on a table

    Stan,

    When I plug this into my excel, I just get a bunch of zeros... Am I doing something wrong? I'm placing it in CY2 as you suggest and then copying down.

    EDIT: NEVERMIND... got it working... I'm an idiot...
    Last edited by joekrebs; 12-09-2010 at 01:28 AM.

  6. #6
    Registered User
    Join Date
    12-08-2010
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Delivering Data Based on a table

    Ok... One more I need help with in a similar vein to the last one I assume.

    What I want to do is as follows:

    Have my formula look at column K and from there determine which column the data comes from. So for example, if there is a 4 in column K, I want it to use Column O's number. If Column K said 7, the it would reference Column R.

    From there it looks at the "fielding" tab and compares column K against Column A and secondary column against column B. Once it gets a match on both it shows column C.

    So the second half of the formula should be fairly identical to the first and I'm sure I can manipulate that to get it to read the columns and such that I want. My question though is how do I get it to look at K then determine what data to pull for the secondary column.

    Thanks for tremendously for the help the first time and thank you for the help on this one as well!
    Attached Files Attached Files
    Last edited by joekrebs; 12-09-2010 at 10:10 AM.

  7. #7
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Delivering Data Based on a table

    joekrebs,

    If your problem is solved, please say so clearly, and mark your thread as Solved: Click the Edit button on your first post in the thread, Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Edit button will not appear -- ask a moderator to mark it.

  8. #8
    Registered User
    Join Date
    12-08-2010
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Delivering Data Based on a table

    Stanley,

    Thank you so much for all of your help... Is there any way you could help me with one more adjustment to that formula? I provided what i'm looking for in the post just before you sent yours. I REALLY apprecaite this.

    Joe

  9. #9
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Delivering Data Based on a table

    joekrebs,

    Have my formula look at column K and from there determine which column the data comes from.

    What cell is the first new formula going into?

  10. #10
    Registered User
    Join Date
    12-08-2010
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Delivering Data Based on a table

    Looking to insert into Cell DK on Carded and XB Data worksheet.

  11. #11
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Delivering Data Based on a table

    joekrebs,

    The formula in worksheet Carded & XBs Data, cell DK2 (confirmed with CTRL + SHIFT + ENTER, not just the ENTER key), then copied down:



    =IF(ISNA(INDEX(Fielding!$C$2:$C$25,MATCH(1,IF(Fielding!$A$2:$A$25=$K2,IF(Fielding!$B$2:$B$25=(INDEX($L2:$R2,MATCH($K2,$L$1:$R$1,0))),1)),0))),0,INDEX(Fielding!$C$2:$C$25,MATCH(1,IF(Fielding!$A$2:$A$25=$K2,IF(Fielding!$B$2:$B$25=(INDEX($L2:$R2,MATCH($K2,$L$1:$R$1,0))),1)),0)))

+ 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