Help with multiplying / addition if certain criteria is met.

johnnymeow2

New Member
Joined
Feb 5, 2023
Messages
1
Office Version
  1. 365
Platform
  1. Mobile
Hi, I am fairly new to excel and can not find an answer online.

I basically have data and in column N I want it to basically say IF Column M = W then Column C multiply with Column G but if column M = L then I want Column M to say the Negative version of the number in Column C.
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
=IF( M2="W", C2*G2, IF(M2="L", C2*-1,""))

and copy down

depending on whats in C2 or G2 - its possible you may get and error - which you could then use IFERROR() so it does not show the error or a different message

if for example C2 or G2 contains text

=IFERROR(IF( M2="W", C2*G2, IF(M2="L", C2*-1,"")),"")

This just leave the cell blank if M2 does not equal W or L
if you want something else in that cell, then replace "" with "message"
 
Upvote 0

Forum statistics

Threads
1,214,611
Messages
6,120,513
Members
448,967
Latest member
screechyboy79

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