+ Reply to Thread
Results 1 to 5 of 5

copy formula issue

  1. #1
    Registered User
    Join Date
    05-04-2012
    Location
    Virginia
    MS-Off Ver
    Excel 2003
    Posts
    13

    copy formula issue

    I have a formula that looks like this =PSItemResult("{62ACAD81-3CE2-424A-AA20-F0B8B554A469}","Qty"

    What I am trying to do is to copy this to 2 more cell but instead of "Qty" I need to change one to "Name" and "linear". any idea how I can get a macro to do this do this or some kind of link IF statement?

    I have attached an example of what the finished product would look like



    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,414

    Re: copy formula issue

    Not sure what your PSItemResult is (and it is a different name in your example), but you could do it like this:

    =PSItemResult("{62ACAD81-3CE2-424A-AA20-F0B8B554A469}",IF(COLUMN()=1,"Qty",IF(COLUMN()=3,"Name",IF(COLUMN()=6,"Linear",""))))

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    05-04-2012
    Location
    Virginia
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: copy formula issue

    Thats good but the PSItemResult changes, can I do this without knowing what it will be in advance

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,414

    Re: copy formula issue

    I haven't a clue what you mean.

    Pete

  5. #5
    Registered User
    Join Date
    05-04-2012
    Location
    Virginia
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: copy formula issue

    Okay, so when I link this cell with our program it assigns this =PSItemResult("{62ACAD81-3CE2-424A-AA20-F0B8B554A469}", but if I link to a new item the long # in quotes changes. So right now we copy the first cell and paste then change the name to qty Etc.. I am trying to see if there is a way to make it so we dont have to copy and paste

+ 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