Sum a range of cells depending on conditions across two worksheets and lookup values

Shardey

New Member
Joined
Aug 24, 2022
Messages
28
Office Version
  1. 365
  2. 2021
  3. 2016
Platform
  1. Windows
Hi. So there are two sheets with me.
Sheet 1
Column A : Item No. (Unique nos.)
Column B: Quantity
Column C: approval status given by 3, 2, 1
Column D: (result column)

Sheet 2
Column A: Item No. (Unique nos. From column A sheet 1 are repeated numerous times here)
Column B: Quantity delivered
Column C: receipt status (two values - 'issued', 'pending')

Now, i need a formula to be put in column D (sheet 1), where, it checks, against unique value in column A, say cell A3, if the value of corresponding cell in column C, cell C3=3, if true, then lookups A3(sheet 1), in column A in sheet 2, whereever it finds it, its checks its corresponding column C value. If its 'issued' it then sums the value of corresponding column B (sheet 2) with all such values against that unique item no. And issued status.

Kindly help.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Cannot seem to attach the excel directly. So added sample images.
 

Attachments

  • sheet 1.png
    sheet 1.png
    21.5 KB · Views: 4
  • sheet 2.png
    sheet 2.png
    20 KB · Views: 4
Upvote 0
Also i cannot convert it into tables due to other restraints.
 
Upvote 0
How about
Excel Formula:
=IF(C2=3,SUMIFS(Sheet2!B:B,Sheet2!A:A,A2,Sheet2!C:C,"Issued"),"")
 
Upvote 0
Solution
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,851
Members
449,051
Latest member
excelquestion515

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