Forum

Notifications
Clear all

Function to use when you want to choose values from a table

5 Posts
3 Users
0 Reactions
69 Views
(@stf25)
Posts: 15
Eminent Member
Topic starter
 

Hi,

I have inserted an excel file and explained there what i would need to do. Basically need a function, that can possibly pick a value from a cell that uses a SUM()- function. Is that possible?

 

Greetings,

Stefi 

 
Posted : 10/03/2019 9:51 am
Philip Treacy
(@philipt)
Posts: 1629
Member Admin
 

Hi Stefi,

If there's some relationship or way to identify what you want to sum then you can do this.

But looking at the examples in your workbook, you say that in F5 you want the sum of C11+C28+C46 but I don't see how you know you want to do this. 

How will the formula know that it needs to sum C11+C28+C46?  What relationship or property identifies these cells as the ones you need to sum?

regards

Phil

 
Posted : 10/03/2019 10:11 pm
(@stf25)
Posts: 15
Eminent Member
Topic starter
 

Hi Phil,

Thank you for your reply, that is the reason i have had a problem to find the right function for that, i don't even know if it is possible to do that without using macros, but i would like to avoid macros if it is possible. Basically, the values in C column are pipe fittings, i am working on a spreadsheet so if there is a pipe let's say 75 meters long, every 5 meters, the fittings change, and i would like the user to be able to choose on each length what the fittings are from that C column. So i'm wondering if that's possible to choose each time what to sum in one reference cell B1, and then transfer it to the F column? Since it would be too complicating if each time the user would have to choose what to sum in every single cell in the F column (the length can be way more that 75 meters in some cases). Also, the number of fittings can change on each cell of the F column, sometimes you have to sum 3 values from C column, sometimes one etc. 

If there is a way i can choose what i want to sum in only one reference cell (B1) and then each cell in F column would take that value from B1, it would be very convenient. Or if there another convenient way that could make this easier i would highly appreciate it.

I attached a new excel file if that helps to understand it better.

Greetings,

Stefi

 
Posted : 11/03/2019 7:04 am
(@sunnykow)
Posts: 1417
Noble Member
 

Hi Stefi

I don't think what you want is possible even with a macro. Refer to Philip's reply on why it cannot be done.

Sunny

 
Posted : 12/03/2019 4:40 am
(@stf25)
Posts: 15
Eminent Member
Topic starter
 

Hi Sunny,

Thank you for your reply, glad to know there is no way this could work, i'll try to come up with a new idea 🙂 

Greetings,

Stefi 

 
Posted : 12/03/2019 5:41 am
Share: