+ Reply to Thread
Results 1 to 5 of 5

If function in calculation

  1. #1
    Registered User
    Join Date
    07-22-2017
    Location
    Ireland
    MS-Off Ver
    2013
    Posts
    2

    If function in calculation

    Hi guys

    I need to use the if function or maybe there is an easier way, the information I have is like below

    A1. B1. C1. D1. E1. F1. G1
    50. Yes. 100. 60. Yes

    What I need to put in is if B1 says yes then add A1 and if D1 says yes then add C1 or if it blank add 0
    And so on, in G1 I need the total for A1, C1, E1, it does go on a lot more but if I can get the correct function for the above it would be fab.

    Any suggestions it's doing my head in
    Thanks
    Last edited by Fiona Clarke; 07-22-2017 at 08:45 AM. Reason: As requested by admin

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,730

    Re: If function in calculation

    Try

    =SUM(IF($B1:$Z1="yes",$A1:$Y1))

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,730

    Re: Help with if formula

    @Ali, OP has (had) changed title so I replied.

  4. #4
    Registered User
    Join Date
    07-22-2017
    Location
    Ireland
    MS-Off Ver
    2013
    Posts
    2

    Re: If function in calculation

    Worked a treat thanks so much , so simple when you know how

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,730

    Re: If function in calculation

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  2. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  3. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 PM

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