+ Reply to Thread
Results 1 to 2 of 2

Calculated Column If Column Has A Value

  1. #1
    Forum Contributor
    Join Date
    03-03-2011
    Location
    Ottawa, Ontario
    MS-Off Ver
    365
    Posts
    136

    Calculated Column If Column Has A Value

    I have a table in the data model with 5 columns which sometimes contain a value and sometimes are empty. I would like to add a calc. column that would show which columns have a value.

    No. AA BB CC DD EE
    1 344 555
    2 666 444 5555
    3 222 333 888
    4 111 777 999
    5 222 666

    example: No. 1 has values for AA and BB so I would like the new column to show "AA-BB". No.2 has values for AA, BB and CC so would like to show "AA-BB-CC".

    If had a little success with a huge nested IF(AND) function but it is way to large so I was hoping that somebody might be able to point me in the right direction to how I can achieve this.

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,445

    Re: Calculated Column If Column Has A Value

    Hi,

    Assuming your table is A1:F6, on row 2 and copied down,

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    or for those who prefer their formula less readable and more compact....

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by sweep; 11-16-2017 at 12:00 PM.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Pivot Table Calculated Field - Sum of Column A * Min of Column B
    By Whizbang in forum Excel General
    Replies: 8
    Last Post: 07-20-2021, 08:49 AM
  2. SHAREPOINT calculated column
    By rosethorn5 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-10-2017, 10:35 PM
  3. [SOLVED] Sum of one column, but the numbers being calculated could change based on another column
    By ciresuark in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-10-2016, 07:38 PM
  4. difference between calculated field and calculated column in PowerpIvot
    By stephme55 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-14-2016, 06:05 PM
  5. Replies: 1
    Last Post: 03-13-2015, 03:47 AM
  6. Replies: 5
    Last Post: 05-30-2012, 07:25 AM
  7. [SOLVED] using a calculated column value within a range
    By gvm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-17-2005, 10:05 AM

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