Find difference(latency) between two rows in certain column

Bobbyiffor

New Member
Joined
Apr 1, 2014
Messages
1
Hi All,

write down macro or combination of formulas to find out the following-

I need to find the difference between certain column in 2 rows based on other columns.

For example-

Find 'A10' minus 'A16' based on certain values in B column. 'B1' or 'B2' or 'B10' or 'B?' ('B' can be anything).

Once you find the difference, copy/paste it as comment or paste it in blank column anywhere in the worksheet.

How to determine which 'A?' to minus from which 'A?'
For that, determine B column.

How do you choose B? value?
For that, Find B? = B? . The pattern looks like
B1= B2 = B10 (most of the time)
or
B1= B2 = B10= B114

Now highlight/choose B10 value; we don't need B1 and B2 here. Now choose A10. Now, (check another column C) if C10= C11 then deduct A10 from A11. this is the value we need and we want to paste it.

or
Now highlight/choose B10 and B114 value; we don't need B1 and B2 here. Now choose A10 and A114. (Note: Don't subtract A10 with A114)
Now, (check another column C) if C10= C11 then deduct A10 from A11 and if C114= C115 then deduct A114 from A115. these are the values we need and we want to paste it as comment or in blank cloumn.
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

Forum statistics

Threads
1,215,393
Messages
6,124,680
Members
449,180
Latest member
kfhw720

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