• 410K Members
• 10.1K Online
• 466K Conversations

## A Formula For This?

Occasional Visitor

# A Formula For This?

Hey guys,

Not too good with excel, but I have an odd question about formulas. I will try to explain this the best I can.

I was wondering if there is a formula for a situation like this: Imagine an inventory report: if Column C is correct, Column D has a checkbox in it, Column E would reflect Column C. If the inventory in Column C is correct, you check the box in Column D and then it would reflect Column C's value in Column E. If it isn't correct, in Column E, you'd type in the value that was counted in inventory and Column F would have the difference between Column E and Column C to show that it was incorrect in inventory and the difference being in column F is how much the inventory is off by +/-.

# Re: A Formula For This?

You can have the suspected inventory on hand be column C.  I'm guessing you want Column D because you don't want the inventory person to have to enter by hand the actual number for each row, and short circuit is to check a box if they match.

Simple way to do this would be to have column D be a "Match expected?" header and just put a "Y" or "N" in the column to indicate yes or no.  ( or just Y for yes, blank is implied no )

Column E is the actual inventory on hand (which if you enter all the actuals, then you can simply check E vs C for variance.

Then you can have a formula like this for column F:

=if(\$D1="Y",\$C1,E1-C1)

You can color format column F for Green/Red by variance threshold etc...

If you don't want to do the "Y" / "N", you could do a box click, but would be more involved to make that work, and would be VB coding as well to align.  Above is simpler IMHO.

hope this helps.

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
22 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
13 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies