+ Reply to Thread
Results 1 to 6 of 6

Need formula or VBA code that changes a cell based on three separate parameters

  1. #1
    Registered User
    Join Date
    06-25-2019
    Location
    Chicago, IL
    MS-Off Ver
    13
    Posts
    6

    Need formula or VBA code that changes a cell based on three separate parameters

    Hello,

    I am not sure where to begin, but I need a formula or VBA code that changes the contents of a cell based on three separate parameters. If those parameters are not met, the cell stays as is.

    Those parameters are based on a store and their hours of operation, which can vary by day and store.

    The Data tab will always vary in size depending on the day the report is ran. The Table tab shows each store along with their hours of operation.

    This is what I am looking to do:

    In row 2, a call was sent to voicemail for store F on a Tuesday at 9:09am, but it was out of the stores normal hours of operation. I am trying to change cell E2 to match what is on the Table tab in cell A7, and any other cell in Column E that shows a call was sent to voicemail when it was actually out of the store's normal hours of operation.

    I hope that all makes sense... I haven't had coffee yet.

    Thank you in advance!
    Attached Files Attached Files
    Last edited by Keith Biro; 07-31-2019 at 10:37 AM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2407 Win 11 Home 64 Bit
    Posts
    24,084

    Re: Need formula or VBA code

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    06-25-2019
    Location
    Chicago, IL
    MS-Off Ver
    13
    Posts
    6

    Re: Need formula or VBA code

    Does that work?

  4. #4
    Registered User
    Join Date
    06-25-2019
    Location
    Chicago, IL
    MS-Off Ver
    13
    Posts
    6

    Re: Need formula or VBA code

    Hi alansidman,

    Is the new thread title within the rules or do I need to adjust it more?

  5. #5
    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. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,569

    Re: Need formula or VBA code that changes a cell based on three separate parameters

    It’s fine now - thanks.
    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.

  6. #6
    Registered User
    Join Date
    06-25-2019
    Location
    Chicago, IL
    MS-Off Ver
    13
    Posts
    6

    Re: Need formula or VBA code that changes a cell based on three separate parameters

    Thank you!

+ 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. writing vba code to fill in column of sheet, formula works vba code will not
    By pdx2245 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2019, 05:15 PM
  2. Writing a Formula using R1C1 code in VBA code
    By e4excel in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-15-2014, 11:06 AM
  3. Replies: 1
    Last Post: 11-13-2013, 10:28 AM
  4. Advice and help with a copy past code or filldown formula code
    By KELLIS in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-14-2013, 02:07 PM
  5. Help: formula or VB code to implement voting system code
    By cdsc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-24-2013, 01:23 AM
  6. [SOLVED] Array Formula vs vBa code - How To Modify My Messy Code To One Of Those
    By ScotyB in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-20-2012, 12:04 AM
  7. Sumproduct formula:Empl Code Payroll Code Amount
    By bluemeg in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-30-2009, 02:08 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