+ Reply to Thread
Results 1 to 7 of 7

Based on data validation list value Formula

  1. #1
    Forum Contributor
    Join Date
    03-15-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    149

    Based on data validation list value Formula

    I have a data validation list on B3. My lists are 1st Qt., 2nd Qt., 3rd Qt., 4th Qt., 5th Qt., 6th Qt. in B3
    and my answer is in B8


    B8=IF (B3=”1st Qt.”, “2nd Qt.”, “”)
    B8=IF (B3=”2nd Qt.”, “3nd Qt.”, “”)
    B8=IF (B3=”3rd Qt.”, “4th Qt.”, “”)
    B8=IF (B3=”4th Qt.”, “5th Qt.”, “”)
    B8=IF (B3=”5th Qt.”, “6th Qt.”, “”)

    I would like to get a one formula to B8. Maybe OR, AND

    Please help.......

    Thanks!
    Last edited by raw_geek; 12-17-2012 at 07:11 PM.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Based on data validation list value Formula

    you get better help, if you show us your excel file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Contributor
    Join Date
    03-15-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    149

    Re: Based on data validation list value Formula

    Please see the attached file

    VB code or formula

    Thanks!

    Quote Originally Posted by oeldere View Post
    you get better help, if you show us your excel file.
    Last edited by raw_geek; 12-10-2012 at 02:57 PM.

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Based on data validation list value Formula

    Is your data validation pulling from a named range or a cell range. Let's say your quarters are in C1:C6
    in B8
    =INDEX(C1:C6, MATCH(B3,C1:C6,0)+1)
    Make sense?

    Update: =IF(ISERROR(INDEX(C1:C6, MATCH(B3,C1:C6,0)+1)),"", INDEX(C1:C6, MATCH(B3,C1:C6,0)+1))
    Last edited by ChemistB; 12-10-2012 at 03:04 PM.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Based on data validation list value Formula

    Or with VLookup.

    I made the data-validation with a named range (see b3).
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    03-15-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    149

    Re: Based on data validation list value Formula

    Yes, both are works, Thanks. However I have limitation on the spreadsheet and any VB code or simple Formula?

    Thanks!

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Based on data validation list value Formula

    You never did attach your file (Go Advanced> Manage Attachments) so hard to give a "simple formula" I think that both Oeldere's and my solution were simple formulas (depending on how your data is set up).
    However, here is a VBA solution placed in sheet module.
    Please Login or Register  to view this content.
    Is that what you are looking for?

+ 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