+ Reply to Thread
Results 1 to 6 of 6

Function IF - Macro

  1. #1
    Registered User
    Join Date
    12-23-2015
    Location
    Novi, United States
    MS-Off Ver
    MS Office 2013
    Posts
    5

    Thumbs up Function IF - Macro

    Good afternoon,

    I'm new here and I need some help.

    I need to make a workbook, where I believe I need a Macro, but do not know how to do well.

    The idea is as follows:

    Have a value in cell F19 (RDS123), this figure varies, as this linked with another tab.
    What do I need to do, is to compare the F19 cell with E21 to E32 .... if F19 = E21, the value that appears in cell H21, should appear in the cell H19, if not, have to compare F19 = E22 ... and so forth, and place .... H22 in H19 cell.

    Someone can give me a hand?

    thank you
    Last edited by isweexcel; 12-23-2015 at 02:23 PM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Function IF - Macro

    Hi. It sounds like this is what you need:

    =INDEX($H$21:$H$32,MATCH(F19,$E$21:$E$32,0))

    If not, please attach an Excel sheet showing your requirments.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    12-23-2015
    Location
    Novi, United States
    MS-Off Ver
    MS Office 2013
    Posts
    5

    Re: Function IF - Macro

    Hey,

    thanks a lot... It worked.

    Marcus

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Function IF - Macro

    Great! I'm glad to have helped! If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Function IF - Macro

    I see that you have amended your first post at 18:23 UK time. Does this change affect the solution provided?

  6. #6
    Registered User
    Join Date
    01-07-2016
    Location
    Nigeria
    MS-Off Ver
    2007
    Posts
    1

    Re: Function IF - Macro

    Good day,

    Please i need help, I'm new with excel macro.
    How can i write an IF statement to check for a chart object first, if present delete then proceed to the next syntax, else proceed to the next syntax without deleting

+ 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. Macro function has been passed to me. not sure its exact function
    By SeanBaird in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-12-2015, 03:04 PM
  2. [SOLVED] Code works in the macro but not in a separate function. "Sub or function not defined."
    By tahi.laci in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-28-2014, 12:38 PM
  3. Using the Find Function inside the Right function in macro
    By namruht in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-28-2013, 02:12 PM
  4. Macro exits prematurely from function after calling other function
    By LouisPhilippe in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-22-2013, 03:22 AM
  5. [SOLVED] Help : Macro Function - unable to apply filter function after macro the file.
    By Shermaine2010 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-05-2013, 12:50 AM
  6. Macro function Get Comment Text function with format
    By guynextdoor in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-28-2010, 01:08 AM
  7. Macro Function:create a new function
    By Tomas in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 05-09-2006, 07:55 AM

Tags for this Thread

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