+ Reply to Thread
Results 1 to 9 of 9

If Statement that takes time seated/Ordered to determine Open Menus

  1. #1
    Registered User
    Join Date
    07-05-2022
    Location
    USA
    MS-Off Ver
    2016
    Posts
    36

    If Statement that takes time seated/Ordered to determine Open Menus

    Hey guys, I need a IF Statement (I think) to determine the Open Menus (E5). Using B5, D5 and F5. If the one of the cells from column A in the sheet "Formula Ref. is typed in D5 then the # of covers in B5 goes to E5, then F5 would contain either a yes or no and if it is yes, then it will return E5 to 0, if it is no, then it will stay the same. Let me know if this makes sense. Or if even possible... Thanks all!
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: If Statement that takes time seated/Ordered to determine Open Menus

    Hi,

    Its not clear how this works.

    What happens when D5 does contain a time from column A of the Formula Ref sheet and the B5 value goes into E5. What then?
    You say F5 should be a Yes or No, but which?

    Are you saying that when E5 is populated with the B5 value then F5 becomes a No, but then if F5 is subsequently changed to Yes, then E5 is set back to zero? This could be controlled by a small SheetSelection_Change event macro but I need to understand exactly what you expect to see and when.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    07-05-2022
    Location
    USA
    MS-Off Ver
    2016
    Posts
    36

    Re: If Statement that takes time seated/Ordered to determine Open Menus

    Edit::

    Hi, thanks for taking some time to help!
    So the basic gist is...

    The covers, table, time seated, and ordered will be manually put in. I don't want to have to touch the open menu column. So here goes,

    Once the guest "B5" shows up nothing happens. We just type in how many guests there are. But, when we type in what time they are officially seated in "D5" that is generated from the value of times in the Formula Ref. Sheet in column A then the cover number "B5" pulls to the open menus "E5". Then if we type no in the ordered column "F5" then nothing changes, but if we type yes, then the number in "E5" goes to 0.

    Does this make sense? This is probably a terrible way of explaining it. But just let me know! Thank you!!!

  4. #4
    Registered User
    Join Date
    07-05-2022
    Location
    USA
    MS-Off Ver
    2016
    Posts
    36

    Re: If Statement that takes time seated/Ordered to determine Open Menus

    I guess a better way to explain would be...

    If D5 = any values from the Formula Ref Sheet A1:A22 then E5=B5 and if F5 = Yes then E5 = 0

    Does that help?

  5. #5
    Registered User
    Join Date
    07-05-2022
    Location
    USA
    MS-Off Ver
    2016
    Posts
    36

    Re: If Statement that takes time seated/Ordered to determine Open Menus

    Bump Please

  6. #6
    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. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,626

    Re: If Statement that takes time seated/Ordered to determine Open Menus

    Administrative Note:

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not told us about this. You are required to do so.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. No help to be offered until you provide a link or, for members with fewer than 10 posts, a comment telling us where else you have posted this query.)
    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.

  7. #7
    Registered User
    Join Date
    07-05-2022
    Location
    USA
    MS-Off Ver
    2016
    Posts
    36

    Re: If Statement that takes time seated/Ordered to determine Open Menus


  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,515

    Re: If Statement that takes time seated/Ordered to determine Open Menus

    Try

    =IF($F5="Yes",0,IFERROR(IF(MATCH($D5,'Formula Ref.'!$A$1:$A$22,0),$B5,""),""))

    or

    =IF($F5="Yes",0,IFERROR(IF(MATCH($D5,'Formula Ref.'!$A$1:$A$22,0),$B5,""),0))
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  9. #9
    Registered User
    Join Date
    07-05-2022
    Location
    USA
    MS-Off Ver
    2016
    Posts
    36

    Re: If Statement that takes time seated/Ordered to determine Open Menus

    Thank you! Works amazing.

+ 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. Need to reduce teh time it takes to open a xlsm file
    By sarikabaluja in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-04-2019, 01:42 PM
  2. [SOLVED] msoFileDialogFolderPicker takes very long time to open first time
    By Jacc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-12-2015, 08:00 AM
  3. [SOLVED] If statement that takes results from 2 columns to determine an outcome
    By jbeets in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-27-2014, 07:22 PM
  4. Excel file takes a long time to open
    By MikeWard100 in forum Excel General
    Replies: 1
    Last Post: 02-14-2013, 09:57 AM
  5. Form takes a long time to open
    By 00Able in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-28-2010, 07:56 PM
  6. Replies: 0
    Last Post: 06-22-2006, 03:22 AM
  7. [SOLVED] MS Query takes along time to open
    By TonyL in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-06-2006, 08:50 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