+ Reply to Thread
Results 1 to 15 of 15

Show a word depending in a different column

  1. #1
    Registered User
    Join Date
    05-15-2012
    Location
    Oshawa, ON
    MS-Off Ver
    Excel 2010
    Posts
    86

    Show a word depending in a different column

    I need a code that will display the word "April" in Y if AH = "1". It cannot be a formula.

    Thanks.

  2. #2
    Forum Contributor
    Join Date
    06-07-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    189

    Re: Show a word depending in a different column

    Quote Originally Posted by luke.guthrie View Post
    It cannot be a formula.

    Thanks.
    Why not?

    =CHOOSE(AH1,"April","May","June","July","August","September","October","November","December","January","February","March")

  3. #3
    Registered User
    Join Date
    05-15-2012
    Location
    Oshawa, ON
    MS-Off Ver
    Excel 2010
    Posts
    86

    Re: Show a word depending in a different column

    Because I am uploading the file to an external site and it won't accept anything that isn't hard coded.

  4. #4
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Show a word depending in a different column

    Hi If I understood You check this
    Please Login or Register  to view this content.
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

  5. #5
    Registered User
    Join Date
    05-15-2012
    Location
    Oshawa, ON
    MS-Off Ver
    Excel 2010
    Posts
    86

    Re: Show a word depending in a different column

    That didn't return anything. Here is the code I am trying to add it to, maybe it has something to do with that.

    HTML Code: 

  6. #6
    Valued Forum Contributor StevenM's Avatar
    Join Date
    03-23-2008
    Location
    New Lenox, IL USA
    MS-Off Ver
    2007
    Posts
    910

    Re: Show a word depending in a different column

    This macro will put "April" in column Y every time column "AH" equals 1.

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    06-07-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    189

    Re: Show a word depending in a different column

    Perhaps

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    05-15-2012
    Location
    Oshawa, ON
    MS-Off Ver
    Excel 2010
    Posts
    86

    Re: Show a word depending in a different column

    That is not returning anything, either.

  9. #9
    Registered User
    Join Date
    05-15-2012
    Location
    Oshawa, ON
    MS-Off Ver
    Excel 2010
    Posts
    86

    Re: Show a word depending in a different column

    Quote Originally Posted by Thalassa View Post
    Perhaps

    Please Login or Register  to view this content.

    This is just returning #VALUE in the cell

  10. #10
    Forum Contributor
    Join Date
    06-07-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    189

    Re: Show a word depending in a different column

    It works perfectly here.

  11. #11
    Registered User
    Join Date
    05-15-2012
    Location
    Oshawa, ON
    MS-Off Ver
    Excel 2010
    Posts
    86

    Re: Show a word depending in a different column

    My number format is "00" in AH, does that have something to do with it?

  12. #12
    Forum Contributor
    Join Date
    06-07-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    189

    Re: Show a word depending in a different column

    Works fine for me with that number format. Are your numbers numbers or numbers stored as text (if they are numbers they should be right justified in the cell).

  13. #13
    Registered User
    Join Date
    05-15-2012
    Location
    Oshawa, ON
    MS-Off Ver
    Excel 2010
    Posts
    86

    Re: Show a word depending in a different column

    Left justified so stored as text. They are generated by this code.

    HTML Code: 

  14. #14
    Forum Contributor
    Join Date
    06-07-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    189

    Re: Show a word depending in a different column

    Try

    Please Login or Register  to view this content.

  15. #15
    Registered User
    Join Date
    05-15-2012
    Location
    Oshawa, ON
    MS-Off Ver
    Excel 2010
    Posts
    86

    Re: Show a word depending in a different column

    Perfect thanks!

+ 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