+ Reply to Thread
Results 1 to 17 of 17

Convert formulas to vales

  1. #1
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    Convert formulas to vales

    A user select a product and this product is added to the next empty row and columns to the right are filled in using vlookup formulas in VBA. There are some blank columns between the formulas. I want to convert the formulas to values before the next product is selected but my code is not working? Columns B to H has data, column I is empty and columns J & K have data. Would really appreciate any assistance.
    Thanks in advance

    Please Login or Register  to view this content.

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,236

    Re: Convert formulas to vales

    Hi Aland2929
    Will be easier if you can upload a sample workbook so that we can see all the code.
    Perhaps:
    Please Login or Register  to view this content.
    Last edited by sintek; 05-09-2017 at 07:43 AM.
    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 star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    Re: Convert formulas to vales

    Thank you for your reply - all code before the copy and paste is working fine (I am using vlookup formulas based on product chosen and if I don't convert formulas to values, all the rows have the same vlookup answers) - my problem is the copy paste code - I want to convert the row I have posted to values but there is a blank column between the formulas so End(xlToRight) does not include all columns.
    Thanks for your help.

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Convert formulas to vales

    Are you sure
    Please Login or Register  to view this content.
    is working?

  5. #5
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    Re: Convert formulas to vales

    Thanks for your reply - I have attached a sample file which illustrates the problem.
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Convert formulas to vales

    Is this just a demonstration purpose?
    Please Login or Register  to view this content.
    Last edited by jindon; 05-09-2017 at 08:36 AM.

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

    Re: Convert formulas to vales

    Maybe:

    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    Re: Convert formulas to vales

    Thanks for your reply - In the real workbook, I only want to convert formulas to values from column B to column G. In columns H, j & K, the formulas must remain - the formulas below are for columns H, j & K but they are not relative? Will really appreciate your assistance.


    Please Login or Register  to view this content.

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

    Re: Convert formulas to vales

    Maybe:

    Please Login or Register  to view this content.

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

    Re: Convert formulas to vales

    Or?

    Please Login or Register  to view this content.

  11. #11
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    Re: Convert formulas to vales

    Thank you very much (works perfectly) - I still have a problem with the following formulas as they always refer to row 14?

    Please Login or Register  to view this content.

  12. #12
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Convert formulas to vales

    Please Login or Register  to view this content.

  13. #13
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    Re: Convert formulas to vales

    Thank you for your reply - I need the formulas to remain in columns H, J & K as they respond to user input in column I. The problem I have is the formulas always refer to row 14?

  14. #14
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Convert formulas to vales

    Hey, you are starting from ActiveCell, so it can be any column. How would somebody else know the column from ActiveCell.Offset ?

  15. #15
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    Re: Convert formulas to vales

    The formulas are being posted to the next empty row correctly but the formulas in columns H, J & K always refer to row 14 as if they are absolute but they need to be relative?

  16. #16
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Convert formulas to vales

    If the columns in formula are fixed
    Please Login or Register  to view this content.

  17. #17
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    Re: Convert formulas to vales

    Thank you - formulas are now relative.

+ 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. [SOLVED] Making sure vales are in three seperate columns
    By Spotniq in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-10-2015, 12:05 AM
  2. [SOLVED] Convert a group of formulas to array formulas at once
    By coach.32 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-16-2015, 02:21 AM
  3. [SOLVED] minimum vales in a row greater than zero
    By Araise in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-08-2015, 12:27 PM
  4. [SOLVED] Display vales for duplicate entries
    By SHUTTEHFACE in forum Excel General
    Replies: 7
    Last Post: 12-05-2014, 01:03 PM
  5. Split the ranges into column vales
    By SakshiTandon in forum Excel General
    Replies: 3
    Last Post: 02-02-2013, 06:31 AM
  6. extract matching vales
    By TUNGANA KURMA RAJU in forum Excel General
    Replies: 9
    Last Post: 08-11-2006, 01:45 AM
  7. Need an OR Function that will allow for Text vales.........
    By nevi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-06-2006, 02:15 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