Multiply Formula Based Off Several Texts

Treesh1994

New Member
Joined
Aug 15, 2023
Messages
45
Office Version
  1. 2019
Platform
  1. Windows
What I am looking to do is have an autofill on A18 on down based on the number of vehicles from AT1. In this example I chose 6. I prefilled the information in on column A QTY section.

The High lighted words on H26, H30, H31 needs to have a total of 2 per vehicle. The rest of the lines in column H needs to be 1 per vehicle.

The words in H26, H30, H31 may be moved throughout the document so I want a formula that it doesn't matter where it is on the page. If the word ELUC3H010D, EMPS1STS4RBW, or EMPS2QMS5RBW shows up in the document, I want excel to know it needs to be multiplied by 2, and the rest by 1.


I hope this makes sense and someone can help me make a formula!

1692203608245.png


EDIT:
Also I forgot to mention, that I don't want to use VBA if at all possible
 

Attachments

  • 1692203174825.png
    1692203174825.png
    211.8 KB · Views: 3
Last edited by a moderator:
Like this then?

Treesh1994.xlsm
AGHIJKAT
16
17
186a
1912ELUC3H010D
20 
21-699B
2212EMPS2QMS5RBW
Sheet1
Cell Formulas
RangeFormula
A18:A22A18=IF(H18="","",IF(H18="99B",-AT$1,AT$1*(1+OR(H18={"ELUC3H010D","EMPS1STS4RBW","EMPS2QMS5RBW"}))))
Yes that is exactly what I am looking for!

Thank you so much for your help!

I greatly appreciate your assistance on this!
 
Upvote 0

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
You're welcome. Glad we got there in the end. Thanks for the follow-up. :)

(But please look into XL2BB for any future questions. ;))
 
Upvote 0

Forum statistics

Threads
1,215,156
Messages
6,123,339
Members
449,098
Latest member
thnirmitha

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