+ Reply to Thread
Results 1 to 5 of 5

Inserting a formula using active cell

  1. #1
    Registered User
    Join Date
    10-31-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    41

    Inserting a formula using active cell

    I have a loop that uses active cell which I want to use to enter an if formula. Where it gets interesting is that I don't know which column they are in. What I do have is each columns marked in row 1 with a header name. So basically I want to use if column with abc in row2 has value x then take the value in zxy and make it negative in the new active cell. Any thoughts on how I might be able to do this?

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Inserting a formula using active cell

    not clear. Could you attach a workbook and give us some samples to work with?
    Is it the macro that will put the new value in the active cell?
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  3. #3
    Registered User
    Join Date
    10-31-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    41

    Re: Inserting a formula using active cell

    For instance in table below the columns are not in alphabetical order and their order can change in my sheet. What I want to say do is after I insert a column say after the d column I want to take make a formula that uses an if statement and the values in say column a and e.

    a b d e
    1 2 4 5
    9 3 4 2
    8 3 6 1
    6 8 4 3

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Inserting a formula using active cell

    Maybe?

    Please Login or Register  to view this content.

  5. #5
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Inserting a formula using active cell

    not any clearer to me. Why don't you attach a workbook with some samples to work on?
    Please, more details about your process is necessary.
    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. Inserting the active filename in cell A1
    By 06balayy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-04-2014, 02:52 PM
  2. Problems with autofilling formula down the active column to the end row using active cell
    By sl_riches2179 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-27-2013, 09:30 AM
  3. Inserting and Removing Hyperlink within active Workbook
    By Bhummel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-17-2012, 08:37 AM
  4. inserting active x checkboxes with sequential names
    By ferrum_equitis in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-01-2012, 04:53 AM
  5. Inserting Rows with the change event active
    By KobusD in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-29-2005, 12:05 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