+ Reply to Thread
Results 1 to 6 of 6

=SUM cells containing multiple formula with '&' ampersand

  1. #1
    Registered User
    Join Date
    04-07-2017
    Location
    Manchester
    MS-Off Ver
    MS Office 2010
    Posts
    2

    =SUM cells containing multiple formula with '&' ampersand

    Hi all,

    I'm after some help if possible, I'm not great with excel, but I've been handed a task at work to put together a workplace checklist. The checklist will be used to score retail stores on their H&S standards.

    I've put together the majority of the spread sheet, with two columns 'Y' and 'N', with a further column determining the score gained from questions they've answered positively.

    At the bottom of the 'Score' column there's a TOTAL: box, which adds up the points they've gained.

    The problem is, I've made the score gained column automatic using the following formula;

    =IF(C8="X",2," ")&IF(D8="X",0, " ")

    But when I try to get the TOTAL box to add up using the =SUM(F8:13) forumla, It just keeps it at 0.

    It worked initially before I added the ampersand (&) - but doesn't when the symbol is added.

    any help would but stupidly appreciated.

    Andy

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2312
    Posts
    42,579

    Re: =SUM cells containing multiple formula with '&' ampersand

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

  3. #3
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: =SUM cells containing multiple formula with '&' ampersand

    Hi,

    That formula will always return a text value. I imagine you could use something like
    =IF(C8="X",2,0)+IF(D8="X",1,0)
    Note I assumed that "X" in D8 should add something to the score other than 0, so I changed it to 1.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  4. #4
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: =SUM cells containing multiple formula with '&' ampersand

    concatenated using & becomes text/string.
    you can multiply the concatenated by 1

    =(IF(C8="X",2," ")&IF(D8="X",0, " "))*1
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  5. #5
    Registered User
    Join Date
    04-07-2017
    Location
    Manchester
    MS-Off Ver
    MS Office 2010
    Posts
    2

    Re: =SUM cells containing multiple formula with '&' ampersand

    Hi guys,

    Thanks for the help above; sorry for the long delay in responding, I forgot my log in details.

    I've attached an example of the document.

    Basically I want the section 'Score Achieved' to add up in the bottom right corner.

    If you put an X in 'Yes' column, they get the points, if you put an X in the no column, they get a 0.

    Hope this helps

    Thanks in advance!

    Andy
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Office 2010
    Posts
    27,129

    Re: =SUM cells containing multiple formula with '&' ampersand

    In G5 and copy down


    =IF(D5="X",2,0)

+ 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. Replies: 5
    Last Post: 11-12-2015, 01:57 PM
  2. [SOLVED] With Ampersand Extracted from Multiple to a single Cell, HOW TO GET W LEADING ZERO?
    By david gonzalez in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-23-2013, 09:11 PM
  3. Concatenate vs. Ampersand
    By xtinct2 in forum Excel General
    Replies: 2
    Last Post: 11-10-2011, 11:48 AM
  4. Ampersand in header
    By Lynneth in forum Excel General
    Replies: 2
    Last Post: 07-06-2011, 11:29 AM
  5. Need to use Ampersand sign
    By FC3USN in forum Excel General
    Replies: 2
    Last Post: 06-13-2011, 04:36 AM
  6. Excel 2007 : quotes and ampersand in Count formula
    By adamNBU in forum Excel General
    Replies: 3
    Last Post: 02-24-2010, 08:04 AM
  7. Ampersand,&
    By scantor145 in forum Excel General
    Replies: 1
    Last Post: 01-27-2010, 11:23 AM

Tags for this Thread

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