+ Reply to Thread
Results 1 to 13 of 13

Using a variant in forumla... help please

  1. #1
    Registered User
    Join Date
    10-30-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    52

    Using a variant in forumla... help please

    Hi. I am trying to use a variant in a formula. Here's my code... do you know where I'm going wrong?
    Please Login or Register  to view this content.
    xx

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Using a variant in forumla... help please

    how can I test without a sample file ?
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    10-30-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    52

    Re: Using a variant in forumla... help please

    well all you need to do is tell me where I'm going wrong with
    Please Login or Register  to view this content.
    surely...

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Using a variant in forumla... help please

    you don't appear to be using a formula at all-they start with =
    ;-)
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  5. #5
    Registered User
    Join Date
    10-30-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    52

    Re: Using a variant in forumla... help please

    Quote Originally Posted by JosephP View Post
    you don't appear to be using a formula at all-they start with =
    ;-)
    haha yes you're right... can't get that to work though if
    Please Login or Register  to view this content.
    then I get "#NAME?" in the cells do i need the &&&&& signs? x

  6. #6
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Using a variant in forumla... help please

    what is the value of tempset? is it the name of a range or just a literal value? if literal is it text or numeric?

  7. #7
    Registered User
    Join Date
    10-30-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    52

    Re: Using a variant in forumla... help please

    Just a numeric value... at the moment it's "100". x

  8. #8
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Using a variant in forumla... help please

    Merged cells not sure but perhaps

    Please Login or Register  to view this content.
    Alf

  9. #9
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Using a variant in forumla... help please

    no need for a formula then
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    10-30-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    52

    Re: Using a variant in forumla... help please

    Quote Originally Posted by Alf View Post
    Merged cells not sure but perhaps

    Please Login or Register  to view this content.
    Alf
    Didn't exactly work, however
    Please Login or Register  to view this content.
    kind of did!.... Rather than "100" in the cells, I am getting "FALSE". But it's progress!
    Thanks haha

  11. #11
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Using a variant in forumla... help please

    Have you tried this as well?

    Please Login or Register  to view this content.
    Or perhaps you could do as patel45 suggested i.e. upload a sample file

    Alf

  12. #12
    Registered User
    Join Date
    10-30-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    52

    Re: Using a variant in forumla... help please

    Quote Originally Posted by JosephP View Post
    no need for a formula then
    Please Login or Register  to view this content.
    Hi Joseph,
    Thank you, this worked!
    The problem is that I need tempset within a formula...
    This is my code
    Please Login or Register  to view this content.
    I could not define tempset and just have
    Cells(18, 2 * i + 3).MergeArea.Value = "=min('r13" & i + 57 & "'!R" & a & "C9:R" & r & "C9)-Plan!R42C4" maybe I'm making this harder than it needs to be...

    xx

  13. #13
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Using a variant in forumla... help please

    Please Login or Register  to view this content.
    perhaps

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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