+ Reply to Thread
Results 1 to 3 of 3

help needed in creating formulas

  1. #1
    Registered User
    Join Date
    01-28-2013
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    1

    help needed in creating formulas

    Hi,

    I'm using excel 2007.
    I'm trying to craete the below formulas in excel.It would be great if you can help me in this.

    I have a coulm;say col A; in excel where user will put month like Jan,Feb etc..
    Then next coulmn;say col B;will contain day value like 1,2 etc..

    How i can create dynamic formula so that
    when colA will have month Jan then max day value in ColB should be 31
    when colA will have month Apr then max day value in ColB should be 30 etc..

    I have another coumn ;say col C; where i need to create dynamic formula in the below way

    if a1=jan and b1 =1 then c1 01-jan-2013
    if a1=feb and b1 =1 then c1 01-feb-2013
    etc..

    Thnaks in advance.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,904

    Re: help needed in creating formulas

    You could do this with data validation based upon cascading (dependent) combo boxes for the months and days.

    Look at this link on building these.

    http://www.contextures.com/xlDataVal02.html

    Then your formula in column c would be =Date(year,month,day)

    Look here for help on that: http://www.techonthenet.com/excel/formulas/date.php

    Alan
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,942

    Re: help needed in creating formulas

    Hi p.bhaskar and welcome to the forum

    we would love to help you, but 1st, according to forum rule 1, please rename your thread to something more meaningful, that actually describes your problem. lots of contributors will look at a thread title, and if it of interest to them, or falls within their area of expertise, and will only open those threads. also, searching for "help" will not turn up too many results that will benefit you, sorry

    when you name a thread, think "google". what kind of returns would you expect if you typed that into google?

    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you."
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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