Help

kaylaS

New Member
Joined
Mar 13, 2025
Messages
5
Office Version
  1. 365
Platform
  1. Windows
I have 2 sheets in my workbook. If b2(sheet1) is equal to any cell in column a(sheet2), then I need D (sheet2) to equal d42 (sheet1)
 
This is not super clear, but I'll give it a crack. Assuming you want Sheet2, D2 to equal Sheet1, D42 IF Sheet1,B2 is also in Sheet2, Column A????? Again your issue is not super clear, so having to assume.
If this is true then the formula in Sheet2, D2 would be:
Excel Formula:
=IF(COUNTIFS(Sheet2!$A:$A,Sheet1!B2)<>0,Sheet1!$D$42,"")
 
Upvote 0
This is not super clear, but I'll give it a crack. Assuming you want Sheet2, D2 to equal Sheet1, D42 IF Sheet1,B2 is also in Sheet2, Column A????? Again your issue is not super clear, so having to assume.
If this is true then the formula in Sheet2, D2 would be:
Excel Formula:
=IF(COUNTIFS(Sheet2!$A:$A,Sheet1!B2)<>0,Sheet1!$D$42,"")
This is not super clear, but I'll give it a crack. Assuming you want Sheet2, D2 to equal Sheet1, D42 IF Sheet1,B2 is also in Sheet2, Column A????? Again your issue is not super clear, so having to assume.
If this is true then the formula in Sheet2, D2 would be:
Excel Formula:
=IF(COUNTIFS(Sheet2!$A:$A,Sheet1!B2)<>0,Sheet1!$D$42,"")
I have 2 sheets in my workbook. I would like to find a formula so that if b2 on (sheet1) is equal to the value on any of the cells in column a from (sheet2), colum F will = the formula that I have set on (sheet1) D42.

This one has been tricky
 
Upvote 0
Could you post an example of your data and what you hope to achieve? Or upload an XL2BB file with the information
 
Upvote 0
upload an XL2BB file
Could you post an example of your data and what you hope to achieve? Or upload an XL2BB file with the information
The hope is if b1 on calc matches any on sample job code column the total $ that is calculated on calc will populate into the corresponding column on sample
 

Attachments

  • calc2.png
    calc2.png
    112.8 KB · Views: 8
  • sample.png
    sample.png
    75.2 KB · Views: 8
Upvote 0
See if this formula works for you.
Excel Formula:
=IF(Calculator!B$1=Sample!A2,Calculator!D$42,0)
 
Upvote 0
Solution
kaylaS,

Please Note: In the future, when marking a post as the solution, please mark the post that contains the solution (not your own post acknowledging that some other post was the solution).
When a post is marked as the solution, it is then shown right underneath the original question so people viewing the question can easily see the question and solution in a single quick glance without having to hunt through all the posts.

I have updated this thread for you.
 
Upvote 0
Yes!!! This worked, thank you.
See if this formula works for you.
Excel Formula:
=IF(Calculator!B$1=Sample!A2,Calculator!D$42,0)[/CODE
[/QUOTE]
When I change the # in b1 is changed the # doesn't save in the corresponding column on sheet 2, I have tried locking the cell but that isn't working, any thoughts?
 
Upvote 0

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