Complicated Index formula with OR not working

oblix

Board Regular
Joined
Mar 29, 2017
Messages
183
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2016
  5. 2013
  6. 2011
  7. 2010
  8. 2007
  9. 2003 or older
Platform
  1. Windows
  2. MacOS
  3. Mobile
  4. Web
Hi there all

I have a complicated index formula I can not resolve.

Background:

I created a sheet with a shopping list (sheet name - SL1)
in this sheet
column B has the product description (eg apples)
column Q the name of the company I entend to buy from (eg company A)
column R the oty i intend buying (eg 10)
column S the price of product for this company (eg $10-00)

in onother sheet i created a purchase order form with these formulas (sheet name PO1)
column B product decription
=IFERROR(INDEX('SL1'!$B$7:$B$605,SMALL(IF(('SL1'!$R$7:$R$605>0)*('SL1'!$Q$7:$Q$605=$K$5),ROW('SL1'!$B$7:$B$605)),ROW(1:1))-6,1),"")

column E Qty: =IFERROR(ROUNDUP(INDEX('SL1'!$R$7:$R$489,MATCH(A20,'SL1'!$B$7:$B$489,0)),0),"")

column F price: =IF(ISERROR(MATCH(A20,'SL1'!$B$7:$B$489,0)),"",INDEX('SL1'!$S$7:$S$489,MATCH(A20,'SL1'!$B$7:$B$489,0)))

k5 = name of company I want to order from

This formulas worked beautifully and was able to drag formulas down the columns ad there is my order form.
If I change the name of the company (k5), the order updates for that company.

Problem:
The boss asked me to add columns in the shopping list to add another possible company per product line.
I did this by adding:
column U: Company name 2
column V: QTY 2
column W: Price 2

Now the purchase order needs to look at two set of columns (q,r,s) and (U,V,W) to populate as company of that order can be in one of those column groups.


For the life of me I dont know how to ammend those three formulas to make this work and believe I have tried.
Please please is there any body that can assist!

Thank you in advance
 
Last edited by a moderator:
Thank you once again for your assistance
Now I can achieve my work so much quicker
 
Upvote 0

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

Forum statistics

Threads
1,214,793
Messages
6,121,619
Members
449,039
Latest member
Mbone Mathonsi

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