IF statement but to add = formula if true.

akeem1234

New Member
Joined
Nov 7, 2022
Messages
24
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Hi guys,

This one is quite simple but i am unsure how to work this.
I have two data sets but one is the previous week and one is the new versions
i want to find out the difference between the two values but some of the data from previous week is not in there so i need to match them using the VLOOKUP and if the value is there then run the difference between the two figures from the specific column

my formula was: IF(A2=VLOOKUP(A2,OLD!A:A,1,0),"=C2-OLD!C2","")

the only issue is, instead of true statement doing The sum of C2- C2(PREVIOUS DATA SHEET), it populates the formula as text =C2-OLD!C2.

So i need to know how i can make that formula populate the result between the two figures and not as an actually statement
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,108
Messages
6,123,133
Members
449,098
Latest member
Doanvanhieu

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