My question; if yes "Y" then add D8 to worksheet tab "summary" how do you do thi

Treeboy

New Member
Joined
Jan 3, 2022
Messages
9
Office Version
  1. 2016
Platform
  1. Windows
My question; if yes "Y" then add D8 to worksheet tab "summary" how do you do this
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Your question is a bit vague, and I think needs a bit of clarification.

Where exactly is this "Y" you are looking for (on what sheet and in what cell)?
What sheet is this D8 cell reference referring to?
How many sheets are in your workbook?

Perhaps it would be best to show us an example of your data and expected output.
MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Your question is a bit vague, and I think needs a bit of clarification.

Where exactly is this "Y" you are looking for (on what sheet and in what cell)?
What sheet is this D8 cell reference referring to?
How many sheets are in your workbook?

Perhaps it would be best to show us an example of your data and expected output.
MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
Ok, here are the specifics: Sheet "Jan 2024" if F8 = Y then I8 =- D8-E8, if F8 = N the I8 = 0
 
Upvote 0
You would just have a formula something like this in cell I8:
Excel Formula:
=IF(F8="N",0,-D8-E8)

Note that if this cell I8 that you are trying to update is on a different sheet than your D8, E8, and F8 references, then you would just need to add your sheet name reference in front of the range references, i.e.
Excel Formula:
=IF('Jan 2024'!F8="N",0,-'Jan 2024'!D8-'Jan 2024'!E8)
 
Upvote 0
You would just have a formula something like this in cell I8:
Excel Formula:
=IF(F8="N",0,-D8-E8)

Note that if this cell I8 that you are trying to update is on a different sheet than your D8, E8, and F8 references, then you would just need to add your sheet name reference in front of the range references, i.e.
Excel Formula:
=IF('Jan 2024'!F8="N",0,-'Jan 2024'!D8-'Jan 2024'!E8)
Perhaps my description was so good. All on the same worksheet, I do not think that the worksheet name is needed.
IF F8 = NO THEN I8 = ZERO - IF F8 = YES THEN I8 = D8-E8
1708982512669.png
 
Upvote 0
Yeah, you seem to keep changing the question slightly!
Is it "Y" and "N", or "Yes" and "No"?

And initially you had:
Excel Formula:
=- D8-E8
and now it is:
Excel Formula:
=D8-E8

So I am guessing now you need either:
Excel Formula:
=IF(F8="N",0,D8-E8)
or
Excel Formula:
=IF(F8="No",0,D8-E8)
depending on whether or not your values are really "N" or "No".
 
Upvote 0
Yeah, you seem to keep changing the question slightly!
Is it "Y" and "N", or "Yes" and "No"?

And initially you had:
Excel Formula:
=- D8-E8
and now it is:
Excel Formula:
=D8-E8

So I am guessing now you need either:
Excel Formula:
=IF(F8="N",0,D8-E8)
or
Excel Formula:
=IF(F8="No",0,D8-E8)
depending on whether or not your values are really "N" or "No".
I know, sorry. Let's us Y and N
 
Upvote 0
So, did you try the formula I gave you in the last post?
If "Y" and "N" are the only two options for F8, the formula I have you should work!
Excel Formula:
=IF(F8="N",0,D8-E8)
 
Upvote 0

Forum statistics

Threads
1,215,474
Messages
6,125,026
Members
449,204
Latest member
LKN2GO

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