+ Reply to Thread
Results 1 to 12 of 12

Adding figures in a row containing text

  1. #1
    Registered User
    Join Date
    08-26-2019
    Location
    Queensland, Australia
    MS-Off Ver
    2016
    Posts
    6

    Adding figures in a row containing text

    Hi All

    i need to calculate the figures in a row, but the row contains cells with text.

    for instance.. the mathematical equation looks like this

    ((1+1+1.5)*D)*D+1 = 15

    Where D = 2

    how do i write a formula for this..

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,372

    Re: Adding figures in a row containing text

    Welcome to the forum.

    How would Excel know that D = 2?

    Maybe something like this:

    =SUM(IFERROR(LOOKUP(T(IF({1},A1:H1)),{"A","B","C","D"},{1,3,4,2}),A1:H1))

    where A1:H1 is the range to sum.

    You really need to provide us with a sample workbook.
    Last edited by AliGW; 08-26-2019 at 01:27 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    08-26-2019
    Location
    Queensland, Australia
    MS-Off Ver
    2016
    Posts
    6

    Re: Adding figures in a row containing text

    Thanks for your response..

    no luck with your formula.. yes im struggling for how excel knows that D means to multiply x 2 at that point.

    ive attached a screen shot of the sheet..

    its a scoresheet for a game played, handlers throw a frisbee dog catches it, scores are recorded in cells.. D means Double..
    What we are wanting to achieve is to add the cells from left to right and when there is a D it doubles the progressive score and gives a total, currently we are adding up manually..

    im sure there is a formula that can work it out... oh and we dont have to use D as the double point, we could use the number 2...
    Attached Files Attached Files
    Last edited by allisonb; 08-26-2019 at 05:34 AM.

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Adding figures in a row containing text

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Registered User
    Join Date
    08-26-2019
    Location
    Queensland, Australia
    MS-Off Ver
    2016
    Posts
    6

    Re: Adding figures in a row containing text

    thanks for your response.. i have edited the above post...

  6. #6
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Adding figures in a row containing text

    Try below array formula in L8, copy and paste towards down

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,372

    Re: Adding figures in a row containing text

    Samba_Ravi - did you forget the formula?

  8. #8
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Adding figures in a row containing text

    see the attached file
    Attached Files Attached Files

  9. #9
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Adding figures in a row containing text

    Quote Originally Posted by AliGW View Post
    Samba_Ravi - did you forget the formula?
    It is showing error message when posted the formula, so attached the file

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,372

    Re: Adding figures in a row containing text

    Ravi's formula is here:

    =IFERROR(SUM(IFERROR(D8:K8*(COLUMN(D8:K8)*(ROW(INDIRECT("1:"&COUNTIF(D8:K8,"D")))>0) < SMALL(IF(D8:K8="D",COLUMN(D8:K8)),ROW(INDIRECT("1:"&COUNTIF(D8:K8,"D")))))*2^(COUNTIF(D8:K8,"D")-ROW(INDIRECT("1:"&COUNTIF(D8:K8,"D")))),0)),0)+SUM(D8:K8)

    It's an array formula, 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.

  11. #11
    Registered User
    Join Date
    08-26-2019
    Location
    Queensland, Australia
    MS-Off Ver
    2016
    Posts
    6

    Re: Adding figures in a row containing text

    Thankyou Ravi & AliGW.. that worked a treat...

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,372

    Re: Adding figures in a row containing text

    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. [SOLVED] Adding up figures
    By barneyrubble1965 in forum Excel General
    Replies: 13
    Last Post: 10-14-2015, 08:36 AM
  2. adding cells with text and figures
    By Shabnaaz in forum Excel General
    Replies: 10
    Last Post: 10-13-2015, 04:51 AM
  3. Conversion of an array of figures inputted into cells as word figures to Excel figures
    By Allan Simpson730 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-08-2013, 07:25 AM
  4. Adding figures in one column but only if another column has text
    By jemacca in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-13-2012, 09:11 AM
  5. Adding 2 different percentages to figures
    By claireinlincoln in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-05-2006, 06:21 AM
  6. [SOLVED] Adding figures
    By paule1982 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-07-2006, 12:00 PM
  7. Adding to Summed Figures
    By Copper via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-21-2006, 05:30 PM

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