Match name and multiply

nparrillo

New Member
Joined
Mar 27, 2023
Messages
29
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
If name in column E matches name in Colum B and has a "Y" in Column C, then multiply Column F by (-1), if "N", multiply by (1).
Solution would be in Column G
 

Attachments

  • Inverse Y or N.png
    Inverse Y or N.png
    16.6 KB · Views: 7

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Book4
BCDEFG
2Name(Y/N)NameCountOther
3sallyYsally2-2
4MarkNMa rk33
Sheet1
Cell Formulas
RangeFormula
G3:G4G3=IF(AND(B3=E3,C3="Y"),F3*-1,F3*1)
 
Upvote 0
Book4
BCDEFG
2Name(Y/N)NameCountOther
3sallyYsally2-2
4MarkNMa rk33
Sheet1
Cell Formulas
RangeFormula
G3:G4G3=IF(AND(B3=E3,C3="Y"),F3*-1,F3*1)
Thanks Alan,

I need it to be scalable as I will be adding lots of other names so it will need the option to look up
 
Upvote 0
I don't understand what you are saying. Suggest you show a larger sample and mock up the solution you want for the larger scale. Maybe 8-12 records that represent your actual data.
 
Upvote 0

Forum statistics

Threads
1,215,945
Messages
6,127,856
Members
449,411
Latest member
adunn_23

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