Copy cell value based on multiple criteria

cepinac

New Member
Joined
Jul 18, 2022
Messages
9
Office Version
  1. 2019
Platform
  1. MacOS
Hi everyone, I've been trying to figure out this by myself but it's out of my reach.

Quick description:
Sheet "Sales" contains 3 columns:
Customer Name | Product | Qty
Workbook contains another 10 sheets with different customer names (same as "Sales" Customer Name).

Sheet "Customer XYZ" contains multiple colums but key one is Product (with matching name as sheet "Sales").

I would like to copy Qty of matching Customer and Product then paste it in an appropriately named sheet.

i.e.
Sales sheet:
Customer XYZ | Oranges | 10
copy 10 and paste it to a Specified colum (i.e. N) and a row containing Oranges in sheet Customer XYZ.

Thank you :)

1658153617552.png
1658153645032.png
 
Thank you so much, got it :)
 
Last edited by a moderator:
Upvote 0

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
There is not paste, you are making one cell equal another cell.
VBA Code:
fRng.Offset(, 1)
For this example it's column B

VBA Code:
fRng.Offset(, 2)
would be column C
Hi Dave, would you be willing to help me out on problem with ranges.
I would like to have VBA that subtracts three column ranges and outputs to the fourth one; all columns should be defined by the value in Cell A1.
Example:
Cell A1 defines the number of week (i.e. number value 1)

based on Cell A1 value VBA should subtract three columns and output to forth one i.e. A2:A - B2:B - C2:C = -> output to D2:D

when cell A1 is changed to number value 2 then the operation would look like this:
B2:B - C2:C - D2:D = -> output to E2:E

Thank you
 
Upvote 0

Forum statistics

Threads
1,214,915
Messages
6,122,217
Members
449,074
Latest member
cancansova

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