Google sheets - calculating price from multiple dropdown selections [closed] - arrays

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 months ago.
The community reviewed whether to reopen this question 6 months ago and left it closed:
Original close reason(s) were not resolved
Improve this question
I would like to calculate the total price in column N (Materials Price) based on the multiple dropdown selections in column M (Materials). How would I accomplish this? The materials and corresponding pricing are in the "price sheet" tab.
For example, in cell M7 there are 3 materials listed: Rollers 10,7 Foot Cable,Side Plates. I would like the total price of $51 to appear in cell N7,
Thank you in advance...I'm new to this so I hope my question is clear.
https://docs.google.com/spreadsheets/d/1RxUrdl-qsMmz84YELN_aNWgYT8q6fOMwiLMO2XgRviU/edit?usp=sharing

try:
=ARRAYFORMULA(MMULT(IFNA(VLOOKUP(SPLIT(M7, ","), 'Price Sheet'!A:B, 2, 0), 0),
SEQUENCE(COLUMNS(SPLIT(M7, ",")), 1, 1, 0)))
you can even replace cell reference with a column range and get whole column by one formula

Related

Sumif (google sheets) but data is every nth cell in a column, every nth column based on cell n-4 [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 months ago.
Improve this question
Im trying to make a budget tracker
Is there a way i can sum every nth cell in a column if the n-4 is a specific string?
I found this but not sure how i can add a "=person A" to the criteria.
Is there a better way to format this data ?
try in C2 and drag to the right:
=INDEX(BYROW(REGEXREPLACE($A2:$A3, "(?i)total ", ),
LAMBDA(T, SUM(IFNA(FILTER(C7:C15, C4:C12=T))))))
⠀‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀

Google Spreadsheet - Is there a way to overflow over blank cells [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 months ago.
Improve this question
I wonder if someone could help me fixing this issue
Planning to have nearly 100 columns to be viewable without scrolling horizontally, so each column shoud have 21 pixels's width, so it's for this reason I can't nor enlarge the columns neither merge themm...
I need that text in A2 overflow/overwrite over E2, F3, G3, H3 cells which are blank since the validation data in E3 is not selected
I want that A2 reacts exactly as I2 is doing by overwrites blank cells in front of it (M2...)
Could you help me fix this out? Any advice would be appreciated.
I share with you an example of my work
https://docs.google.com/spreadsheets/d/12bmwYSi3exkblW0C2VXqDTq5UGEd5GH8D1PsSkjaFNI/edit?usp=sharing
solution here is to unmerge A2:
update:
={"";IFNA(VLOOKUP($E$5,Sheet2!$A$2:$E$5,5,FALSE))}

Formula to return a corresponding number for the most recent date before a certain date in excel [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
Code
Trying to work out a formula that will work out the consumption for me for each vehicle looking at the last od reading for that vehicle.
It seams really easy but my IT degree is failing me, have tried using INDEX , Match array formulas as well as anything else I can think of except vba so far.
Would really appreciate someones input.
I have attached a picture so that you can understand.
Assuming you are fuelling the car with the litres mentioned at the given odometer reading. This will work if the data is sorted in chronological order.
LOOKUP(2,1/($B$2:B5=B6),$C$2:C5) looks for matching value in C column based on the previous B6 value in B Column
=(C6-LOOKUP(2,1/($B$2:B5=B6),$C$2:C5))/LOOKUP(2,1/($B$2:B5=B6),$D$2:D5)

VBA Merging two or more totals based on user input, then delete the originals [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Hello Im very new to VBA and am currently working with this issue, im trying to merge two or more totals
based on user input as to the company name, example of the list:
2nd Cup 1937168
A & W 6485425
Applebee's 1550895
Arby's 8382549
Archie Burger 86776
The user needs to input the names of the companies they want to merge and this will create a new company with the total sum of the combinations, finally deleting the entries off the original list.
I currently am looking into an array for this but am not sure how it would work.
Any help would be vastly appreciated!
For a user-friendly approach, you can use a userform with an associated mult-select, multi-column listbox (for the original data) and a textbox (for the new company name) and then write the code to process your data.
A good tutorial to get you started, from one of our SO experts, can be found here

Count a 2D array within a range [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I have a map that I want to separately count the patterns of different numbers.
Without VB, I want to be able to create a dynamic counter that will be able to count the patterns of numbers.
For example:
I want to count how many times, even if it overlaps that this pattern occurs in the map
2 2
2 2
Counting I can see the pattern occurs six times but I'm struggling to create a simple array formula that will be able to do so
I've been told of success with and IF function with nested AND functions so I know it can be done without VB.
Use the formula
=COUNTIFS(A1:E15,2,B1:F15,2)
notice how the two areas are adjacent - one column offset from each other.
You can extend this to find two-by-two regions:
=COUNTIFS(A1:E14,2,B1:F14,2,A2:E15,2,B2:F15,2)
just be very careful about how the different ranges are offset.
An alternative way to write this which, I suspect, will be more efficient for large ranges is:
=SUMPRODUCT((A1:E14=2)*(B1:F14=2)*(A2:E15=2)*(B2:F15=2))

Resources