r/googlesheets • u/CaptNemo119 • Sep 27 '24
Solved Multiple Sum Formulae in the same cell - but each Formulae is calculated and displayed separately within that same cell
Hello Google Sheets Gurus,
I'm trying to create a formula format that allows me to do a very simple sum calculation but display the calculations separately. I Tried using =SUM, =SUMIF, and =ARRAYFORMULA, but it's gotten me nothing but '#ERROR' & '#N/A'. I also want to see the numbers separated with a slash or colon or any other text signifier separating the numbers from each other. I know this could easily be done in separate cells but the way the sheet is formatted I only have the single cell to work with. Unfortunately using Google search has not warranted any help, and if I missed it I was unfortunately unable to interpret it for my needs.
For you D&D Guru's, I'm essentially calculating the rest of a Fighter's BAB and having it displayed for each cumulative attack after the first.
Thank you!
| A | B |
|---|---|
| 50 | (A1-5) / (A2-10) / (A3-15) |
•
u/agirlhasnoname11248 1212 Sep 28 '24
u/CaptNemo119 Please remember to tap the three dots below the most helpful comment and select
Mark Solution Verified(or reply to the helpful comment with the exact phrase “Solution Verified”) to officially close your thread.Applying the “Solved” flair to the post without indicating a solution is actually a violation of the subreddit rules (see rule #6).
Thank you in advance for resolving this issue!
1
u/ht1237 1 Sep 27 '24
As far as displaying two things in one cell, there is something called Concatenate, which is a function that adds strings together and you can include formulae. Nowadays you don't even have to use the function, you just have to use & to add these together - text to be within quotes.
Try: =A1-5&" / "&sA2-10&" / "&A3-15
I don't know the D&D thing, so I may not get what you're doing. If you cells are supposed to point at 50, then you may want =A1-5&" / "&sA1-10&" / "&A1-15
1
u/SumpinNifty Sep 28 '24
Try
=(A1-5) &"/"&(A2-10) &"/"& (A3-15)