HELP!

hayden610

New Member
Joined
Sep 17, 2020
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I have a sheet (sheet 1) that I will be putting a 3 digit number in one tab that will calculate in 2 other cells
I want to run a macro that will read the row number and read the cell A, C, E and then go into the other sheet (sheet 2) and find those numbers that are in cell a and insert the dollar amounts from cell B,D,E from Sheet 1.

and if their is something in those cells that we will be adding the amounts to add them together

I have attached pictures of the sheets

sheet 1
1600362270277.png


Sheet 2

1600362255677.png
 

Attachments

  • 1600362240174.png
    1600362240174.png
    18.2 KB · Views: 3

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
You can do this with a formula-based approach, if you are interested. What should happen if the first number cannot be found? The approach below searches for the Pick3 number and then returns all three values (base, +1, -1) associated with it...and if it is not found, a "not found" result is returned.
MrExcel20200915.xlsx
ABCDE
1NumberNamePick3Pick3 +1Pick3-1
214$1.00$2.00$1.50
3386$2.00$3.00$2.50
427$3.00$5.00$3.50
5422$4.00$8.00$4.50
644$5.00$13.00$5.50
7586$6.00$21.00$6.50
8101$7.00$34.00$7.50
hayden610_sheet2

MrExcel20200915.xlsx
ABCDEFG
13-digit numberAmtOneAboveAmtOneBelowAmtTotal
2386$2.00387$3.00385$2.50$7.50
3422$4.00423$8.00421$4.50$16.50
4586$6.00587$21.00585$6.50$33.50
5123not found124not found122not found$0.00
hayden610_sheet1
Cell Formulas
RangeFormula
B2:B5B2=IFERROR(INDEX(hayden610_sheet2!$C$2:$C$8,MATCH($A2,hayden610_sheet2!$A$2:$A$8,0)),"not found")
C2:C5C2=A2+1
D2:D5D2=IFERROR(INDEX(hayden610_sheet2!$D$2:$D$8,MATCH($A2,hayden610_sheet2!$A$2:$A$8,0)),"not found")
E2:E5E2=A2-1
F2:F5F2=IFERROR(INDEX(hayden610_sheet2!$E$2:$E$8,MATCH($A2,hayden610_sheet2!$A$2:$A$8,0)),"not found")
G2:G5G2=SUM(B2,D2,F2)
 
Upvote 0

Forum statistics

Threads
1,213,515
Messages
6,114,080
Members
448,548
Latest member
harryls

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