+ Reply to Thread
Results 1 to 9 of 9

Breakdown a formula

  1. #1
    Registered User
    Join Date
    02-10-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    4

    Breakdown a formula

    I have inherited a spreadsheet with a large number of Vlookups. I would like to break down the formula to its various elements.

    For example a cell with the =VLOOKUP(D4,A4:B12,2,FALSE) would be broken down in a new list to:

    Lookup value: D4
    Table array: A4:B12
    Col index num: 2
    range lookup: false

    Is this possible, would VBA be any use.

    So far I have used find and replace (ctrl H) to replace the = with $$$= so that the formula is text format. But i am sure if this is the right thing to do or where to go after that.

    Let me know if you want any further information

    Thanks

    Lucky_git

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Breakdown a formula

    Can you explain what you are trying to achieve?

  3. #3
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Breakdown a formula

    I'm struggling to understand what you are actually trying to achieve.

    Why do you want to ' break down the formula to its various elements'?

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  4. #4
    Registered User
    Join Date
    02-10-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Breakdown a formula

    Hi,

    thanks for getting back,

    The ultimate aim would be to use the various elements in different formulas. As i have so many formulas and all reference to different places I don't want to have to create the formulas manually. I was hoping that there may be a quicker way out there somewhere.

    Lucky_git

  5. #5
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Breakdown a formula

    You mean you want to populate a column with a VLOOKUP formula automatically then?

    Dom

  6. #6
    Registered User
    Join Date
    02-10-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Breakdown a formula

    I would like to use the range that is currently being used in the Vlookup formula, and then use it in anouther formula.

    For example =VLOOKUP(D4,A4:B12,2,FALSE) uses the range A4:B12 <------ the spreadsheet already has this formula in it.

    I would then like to create a new formula with this range ie =Sumif(A4:B12,">15")

    If i can get the various elements out i guess i could use the Indirect function to obtain the above formula.

    Sorry if i am being unclear, I'm a bit over whelmed by this spreadsheet.

  7. #7
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Breakdown a formula

    Indirect is a volatile function and should really not be used a lot unless you really need to.

    You could give the range a defined name and then use that in the formula.

    Dom

  8. #8
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Breakdown a formula

    Why not post a representative sample workbook? I don't see the imperative for this, and even if you use a named range you still have to type the formula each time.

  9. #9
    Registered User
    Join Date
    02-10-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Breakdown a formula

    Okay, thanks for your help so far. I'll draw up a spreadsheet with what i would like to happen and get back.

    Thanks again

    Lucky_git

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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