+ Reply to Thread
Results 1 to 9 of 9

Cell Value Change dependant on Product Type Selected

  1. #1
    Registered User
    Join Date
    11-17-2015
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    9

    Cell Value Change dependant on Product Type Selected

    Hi there everyone

    Am very new to this - not sure what is the right formula to use on this sheet -

    In order to get the products from Sheet 3 into the yellow highlighted cells against the relevant numbers on sheet 2 - dependant on the Product Type on Sheet 1.

    For example - if Sandwiches is selected on Sheet 1 - what formula would I require in cell B1 of Sheet 2 in order to display "Cheese" and then "Ham" in E1...etc
    Then if the type of product changes on Sheet 1 the products on Sheet 2 change with it according to the data on Sheet 3.
    Eg - selecting Drinks on Sheet 1 would make Sheet 2 cell B1 change to "Coke".

    I really hope this makes sense to some one - sorry if it have not explained it very well. Many thanks!
    Attached Files Attached Files
    Last edited by essxmark; 11-17-2015 at 11:20 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Brooklyn, NY
    MS-Off Ver
    Office 365
    Posts
    1,172

    Re: Unsure on Formula to use

    Welcome to the forum
    See if this helps.
    Product Data - ESSXMARK.xlsx

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Unsure on Formula to use

    You could use:

    =INDEX(Sheet3!$B$2:$F$11,MATCH(Sheet2!AB$1,Sheet3!$A$2:$A$11,0),MATCH(Sheet1!$A$1,Sheet3!$B$1:$F$1,0))

    or (if you don't want to see the zeros when there aren't 10 choices)

    =IF(INDEX(Sheet3!$B$2:$F$11,MATCH(Sheet2!AB$1,Sheet3!$A$2:$A$11,0),MATCH(Sheet1!$A$1,Sheet3!$B$1:$F$1,0))=0,"",=INDEX(Sheet3!$B$2:$F$11,MATCH(Sheet2!AB$1,Sheet3!$A$2:$A$11,0),MATCH(Sheet1!$A$1,Sheet3!$B$1:$F$1,0)))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,418

    Re: Unsure on Formula to use

    Somewhere on the sheet with the yellow boxes you need to have a cell with the word "Sandwiches" in it. This could be chosen from a drop-down list. Then, in the yellow boxes, you could use a VLOOKUP or INDEX/MATCH formula to extract the data from the appropriate list. If these lists were named ranges, you could make this happen easily using the INDIRECT function to reference the cell with the drop-down list. Hope this makes some sense to you!
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Unsure on Formula to use

    I have just noticed your thread title. I (and kosherboy) should not have replied yet. Please go to your first post and amend the title to reflect the problem you have. Think of the sort of search terms you would use on Google to find an answer.

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.


    To change a Title go to your first post, click EDIT then Go Advanced and change your title.

  6. #6
    Registered User
    Join Date
    11-17-2015
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Unsure on Formula to use

    Hi Glenn
    I am really sorry - I had no idea what to put as a title - I cant apologise enough - especially after the assistance received. Many thanks for your replies - cant appreciate it enough.
    I hope the amended title is ok now.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Cell Value Change dependant on Product Type Selected

    Yep - that's fine. Many people use Google to search for solutions. If your title is meaningless - it's lost forever. Hence the rule. Anyhow - have you had a look at the solutions offered??

  8. #8
    Registered User
    Join Date
    11-17-2015
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Cell Value Change dependant on Product Type Selected

    Sorry - was a schoolboy error. I have looked at both your and kosherboys solutions - both are what I was looking for and solve my problem.
    Many many thanks!
    Apologies again.

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Cell Value Change dependant on Product Type Selected

    Great! I'm glad to have helped! If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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] HELP: unsure of which formula to use to calculate and summarise a large table of data
    By bellina03 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-14-2015, 10:59 PM
  2. Multiple formula? Unsure which formula to use.
    By ivy.q in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-05-2014, 04:52 AM
  3. Looking for help with a formula as unsure how to do it
    By SophieLove81 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-20-2014, 12:21 PM
  4. [SOLVED] Unsure what formula to use to work out dates from table
    By steveori in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-24-2014, 09:19 AM
  5. Count IF formula with 2 dependent variables - Unsure how to construct
    By nscarritt in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-16-2014, 09:22 AM
  6. [SOLVED] unsure how to wite IF formula
    By oceanside in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-14-2013, 11:32 PM
  7. Unsure what Formula to use to add up values relating to dates
    By Sarah Randall in forum Excel General
    Replies: 3
    Last Post: 03-06-2012, 01:06 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