+ Reply to Thread
Results 1 to 5 of 5

Need an "If" Function that will result in a list of items dependent on a reference number

Hybrid View

  1. #1
    Registered User
    Join Date
    01-30-2013
    Location
    Ohio, usa
    MS-Off Ver
    Excel 2003
    Posts
    10

    Need an "If" Function that will result in a list of items dependent on a reference number

    Hi All!

    Back again with a problem, but I always seem to get the help I need here.

    I am making a "flowchart" to make it easier for our event planners to select menu options for their groups. I already have the sheet set up to produce reference numbers based on facility, room, and number of guests. What I want the formula to do is reference a list of menu options depending on what reference number is in the cell, and then list those options in the column.

    =IF(F5=2,List2,(IF(F5=6,Blair2,(IF(F5=10,Blair3,(IF(F5=14,Blair4,(IF(F5=18,Blair5,(IF(F5=(4),Garden,FALSE)))))))))))

    I THINK the formula is sound, but it wont pull the list to the main sheet from the reference sheet. It returns a #VALUE error.

    Thanks!

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

    Re: Need an "If" Function that will result in a list of items dependent on a reference num

    Assuming your lists are named properly, try this

    =IF(F5=2,INDEX(List2, ROWS($A$1:A1)),(IF(F5=6,INDEX(Blair2, ROWS($A$1:A1)),(IF(F5=10,INDEX(Blair3, ROWS($A$1:A1)),(IF(F5=14,INDEX(Blair4, ROWS($A$1:A1)),(IF(F5=18,Blair5,(IF(F5=(4),INDEX(Garden, ROWS($A$1:A1)),FALSE)))))))))))

    dragged down. Is that what you are looking for?
    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

  3. #3
    Registered User
    Join Date
    01-30-2013
    Location
    Ohio, usa
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Need an "If" Function that will result in a list of items dependent on a reference num

    So Close!

    That pulls the first cell in column of the list. I need it to pull the entire list. (some up to 150 cells)

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

    Re: Need an "If" Function that will result in a list of items dependent on a reference num

    If you drag the formula down, it will pull the other 149 values. Do you want to pull them all into one cell? If so, you'll probably want VBA.

  5. #5
    Registered User
    Join Date
    01-30-2013
    Location
    Ohio, usa
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Need an "If" Function that will result in a list of items dependent on a reference num

    Works Great Thanks!

+ 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. Replies: 2
    Last Post: 04-08-2013, 04:08 AM
  2. Replies: 9
    Last Post: 09-05-2012, 10:23 AM
  3. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  4. Replies: 1
    Last Post: 07-16-2010, 02:44 AM
  5. Replies: 0
    Last Post: 02-08-2005, 11:06 AM

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