+ Reply to Thread
Results 1 to 7 of 7

Macro for excel

  1. #1
    Registered User
    Join Date
    09-18-2017
    Location
    India
    MS-Off Ver
    2016
    Posts
    18

    Macro for excel

    Hi guyz,

    I need an help i want an macro which is follow this step =IF(C3>$BG$1,"Ok","Defaulter") it means i have created BG1 as 8hours and want to calculate if C3 has greater than BG1 than it displays ok otherwise it will show"Defaulter". i need this to be done in Macro and it will end till the last.

    Thanxx
    Attached Images Attached Images

  2. #2
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    15,026

    Re: Macro for excel

    Here you go...
    Please Login or Register  to view this content.
    Good Luck...
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
    Also....Add a comment if you like!!!!
    And remember...Mark Thread as Solved...
    Excel Forum Rocks!!!

  3. #3
    Registered User
    Join Date
    09-18-2017
    Location
    India
    MS-Off Ver
    2016
    Posts
    18

    Re: Macro for excel

    Hi this macro is working but the problem is that its showing ok on all if the time is less than 8hours than also its showing ok

  4. #4
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    15,026

    Re: Macro for excel

    upload a sample file with a few examples...

  5. #5
    Registered User
    Join Date
    09-18-2017
    Location
    India
    MS-Off Ver
    2016
    Posts
    18

    Re: Macro for excel

    I have attached a file...in bg1 i have calculate that 8hour and compare them to c2 that if c3 is greater then BG1 then it will show ok if it is less than
    then it will show defaulter. i want this to be done with macro without defining BG1 as 8 hour.
    Attached Files Attached Files

  6. #6
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    15,026

    Re: Macro for excel

    I do not understand your requirement...please explain what must be compared to what all the way down

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2506 Win 11
    Posts
    24,913

    Re: Macro for excel

    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.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    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

+ 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. Excel macro to copy values from mutiple excel to single excel
    By pravkuma82 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-13-2017, 02:19 AM
  2. Excel Macro to copy Excel Invoice data to Excel Database - Works Perfect. But
    By asifmars in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-02-2014, 04:01 AM
  3. [SOLVED] excel 2007 chart macro graphs data only from sheet on which macro was recorded
    By JW1028 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-19-2013, 06:33 PM
  4. Requesting help in Excel Macro Tutorial/Basic Steps in creating a Macro in Excel
    By rhaiyan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-19-2013, 09:21 PM
  5. Replies: 2
    Last Post: 11-26-2012, 08:33 AM
  6. Excel Macro (excel for mac 2010) - update multiple excel books on criteria
    By genichigo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-15-2012, 07:23 AM
  7. Excel 2003 Macro --> Excel 2000 Macro
    By Tejas.T in forum Excel General
    Replies: 2
    Last Post: 10-21-2012, 07:57 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