+ Reply to Thread
Results 1 to 4 of 4

WHEN function?

  1. #1
    Registered User
    Join Date
    08-28-2009
    Location
    Hull, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    WHEN function?

    I tried search for this but the search tool excludes words like When....

    Here is the situation. I have a drop down cell (A1 below) in which you can choose a month, and another cell (B1 below) which the shows the total cost for a given month.

    Please Login or Register  to view this content.

    I would like to produce a table as below, giving values in column D1 when cell A1 contains the different values in column C.

    Please Login or Register  to view this content.
    Is there a formula which I could enter in column D which would produce the values described, or would I have to manually change cell A1 and input the B1 outputs into column D?

    I'm thinking it may be a sort of "equals B1 when A1 = C1" type of formula...

    Thanks

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: WHEN function?

    Maybe,

    =IF(C1=$A$1,$B$1,"")

    copied down
    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
    Registered User
    Join Date
    08-28-2009
    Location
    Hull, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: WHEN function?

    That would only display a single value in column D and blanks for the rest of the rows.

    I need excel to physically input all of the values in column C into cell A1, then record all of the outcomes of cell B1 in column D.

    Any thoughts?

  4. #4
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: WHEN function?

    That would only display a single value in column D and blanks for the rest of the rows.
    You did say A1 is a drop down. Anyway, since you want compare C1 to A1, you can only return a result if there is a match. The formula NBVC provided is exactly what you asked (maybe not what you intended).

    I need excel to physically input all of the values in column C into cell A1, then record all of the outcomes of cell B1 in column D.
    This is altogether another situation. You want the list of values in Column C to appear in a drop down in A1. Use Data Validation (List option) and reference the range of cells in column-C which hold the list of values.

+ 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