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..
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..
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.
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...
Last edited by allisonb; 08-26-2019 at 05:34 AM.
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.
thanks for your response.. i have edited the above post...
Try below array formula in L8, copy and paste towards down
Samba_Ravi - did you forget the formula?
see the attached file
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.
Thankyou Ravi & AliGW.. that worked a treat...
If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks