Multiply one cell by the cell next to it based on the text in the first cell.

klickoe

New Member
Joined
Sep 26, 2022
Messages
10
Office Version
  1. 2016
Platform
  1. Windows
Hello all,

Not sure what I'm trying to do is possible.
I made this sheet for the company I work for to count parts needed based on the catalog number for that days run. These runs can have any one of a few hundred different catalog numbers. This has worked well because each order set up for these catalogs would be a quantity of one, so a simple Countif function did the trick. Now though orders are being made with more than a quantity of one.

Is it possible to do a formula that if a cell within a range equals a specific text then multiply it by the cell to it's right?
 
ok, I think I had a lightbulb moment in understanding - basically, the guys input the seat type in Col A (as I see you can have duplicates), every day, and this is their total seats being built. Then your formulas in Col E etc. are dictating from that list which seats have which parts. (sorry, it took a long time for me to understand which way around this was working). Its not really the best way to do multiplication with so many countifs, and I really wouldn't want to be you right now :-), facing the amount of formulas you are about to change because of that !

So, I think if you change all the relevant formulas to use SUMIFS instead of COUNTIF, adding in the B Column reference as I have - it should work.

Excel Formula:
=SUMIFS(B3:B25,C3:C25,"187618")

Of course it means they have to add a qty in every line (even if just 1). No qty added = zero multiplier .. and that gets you zero...

Good Luck!...

Rob
 
Upvote 0
Solution

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
There's probably a couple hundred seat types.

You're correct that the standards are a seat family. Each catalog # is a seat type. Each family is composed of seats that are very similar. They'll be built almost identically and look mostly the same when built. There will be minor differences though. We'll take that 17 no-iso for example. The no-iso is a reference to a style of chassis a seat can get. Each seat only gets one chassis. So what this means when it says it needs 17 no-iso under the standards section, is that out of all the cat#'s in col A, there are 17 seats that belong to the standard family that will receive no iso parts.

Does that clear it up?
 
Upvote 0
AWESOME!! Thank you!

Yeah changing gonna suck a little, but it's better than I was expecting.
 
Upvote 0
thanks for feedback. If it were me, and I faced changing all those formulas, I think I would change my sheet to reflect something like this instead :

Book1
ABCDEFGHIJKLMNOPQRSTU
1
2CAT # SEAT Types
3DATA ENTRYTOTAL320000100001000
4Cat #QtyQty Part #Part #187017VW712187000HA710187618HA711187652HW711187618VA712187002VN712187040VN712187025HN711187032HL711187025VA712187024HL711187040VN712187025VA712187040HN711187030VA712
5187017VW71236782394 No Iso13
6187000HA71022116330 No Iso Track1
7187040VN712110783147 Iso212
83116331 Iso Track1
95783300 Bellow13
1014315407 Compressor42
119315989 Shifter211
121783263 OPS1
138310373 HB Frame121
140310374 MB Frame
1510783322 Riser box22
163783349 Riser w/ Elec11
173112706 Track Kit1
180316082 Restriction Kit
19
Sheet2
Cell Formulas
RangeFormula
F3:T3F3=IFNA(VLOOKUP(F$4,$A5:$B25,2,FALSE),0)
D5:D18D5=SUMPRODUCT($F$3:$T$3,F5:T5)


This way, its a simple matter of adding new PArt # to the list as they come up, and also, adding any new seat type across the columns (so you can add a new seat type, and enter its BOM very quickly and simply). The results you are after would then come from column D with the totals.

A small bit of pain to start, but much more manageable as new items come up to be added... (numbers of prts for each seat BOM is made up, example of course on my part above..)

Hope it helps

Rob
 
Upvote 0
Thanks for the advice. I might just do that when I'm not chasing other things down. Got curious and ran a report to see how many different catalogs we currently have in our system..... there's nearly 500, and they keep putting more in.....
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top