+ Reply to Thread
Results 1 to 8 of 8

elseif using formulas

  1. #1
    Forum Contributor
    Join Date
    04-08-2008
    Posts
    121

    elseif using formulas

    Hi,

    Please see attached. I've got this sheet and using VBA I want to assign a formula to column c. If column b value is equal to "hour" then =a1*8, if column b is equal to Day then =a1 and if column b is blank then do nothing
    Attached Files Attached Files
    Last edited by baz0912; 12-01-2008 at 11:41 AM. Reason: poor title and no attachment

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Please read our forum rules and then adjust your title according to Rule 1.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    04-08-2008
    Posts
    121
    sorry I forgot to attach!

    Thanks
    Attached Files Attached Files

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Why would you need a macro? A simple IF formula will do this
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Forum Contributor
    Join Date
    04-08-2008
    Posts
    121
    I know I can do a formula but I want to be able to click a button and column c to populate. I'm adding the code other code that has been written

    Thanks

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Try this

    Please Login or Register  to view this content.
    b

  7. #7
    Forum Contributor
    Join Date
    04-08-2008
    Posts
    121
    Great, thanks for your help

  8. #8
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Quote Originally Posted by baz0912 View Post
    Great, thanks for your help
    Please take the time tyo mark your question solved & rate the answer(s)

+ 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