+ Reply to Thread
Results 1 to 6 of 6

Using a calculation to show which column a figure falls under

  1. #1
    Registered User
    Join Date
    11-09-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Using a calculation to show which column a figure falls under

    I've attached a simple Excel sheet to hopefully help explain what I want to do. Basically I have Column A to show the Project I am working on and Columns B-M show the months of the year with the figures under certain months. In Column N I just want to show where a figure falls under a certain month, I want Column N to show the month (header) that particular figure is under e.g. N2 should return a value of "March", N3 ro return a value "June" and N4 to return a value "April/September".

    Can anyone suggest a suitable calculation for this?

    Thanks in advance.

    Gadgetgeeze
    Attached Files Attached Files
    Last edited by Gadgetgeeze; 11-09-2009 at 06:44 PM. Reason: Problem solved!

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Using a calculation to show which column a figure falls under

    How many months will have values in the end? Up to 12, possibly? Two at the most? This will impact how complex the formula needs to be.

    please enlighten me.

    cheers
    Last edited by teylyn; 11-09-2009 at 06:18 PM.

  3. #3
    Registered User
    Join Date
    11-09-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Using a calculation to show which column a figure falls under

    Shouldn't be more than two.

    Thanks

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Using a calculation to show which column a figure falls under

    Shouldn't
    Here's to hope.

    Anyway, this ugly one in N2 deals with all 12 months. Copy down

    =SUBSTITUTE(TRIM(CONCATENATE(IF(B2>0,$B$1,"")," ",IF(C2>0,$C$1,"")," ",IF(D2>0,$D$1,"")," ",IF(E2>0,$E$1,"")," ",IF(F2>0,$F$1,"")," ",IF(G2>0,$G$1,"")," ",IF(H2>0,$H$1,"")," ",IF(I2>0,$I$1,"")," ",IF(J2>0,$J$1,"")," ",IF(K2>0,$K$1,"")," ",IF(L2>0,$L$1,"")," ",IF(M2>0,$M$1,"")))," ","/")

  5. #5
    Registered User
    Join Date
    11-09-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Using a calculation to show which column a figure falls under

    That's brilliant - that works great and is exactly was what I was after! I didn't expect it to be so complicated to work out though!!

    Thanks so much for your help. I've given you rep!

  6. #6
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Using a calculation to show which column a figure falls under

    I didn't expect it to be so complicated to work out though!!
    I'm sure someone else will come up with a slicker way, but my logic skills are on half their usual power at the moment, so this klutz is the best I could come up with in the time frame.


+ 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