[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
Solved

# Comparing two Excel Fields (matching)

Posted on 2013-05-13
Medium Priority
252 Views
Hi,

I am doing a small excel project for a HOTEL.  This is simpler that it sounds.  Look at the sheet.

The manager wants to know what his projected ROOM sales are for the coming months.

Eg. See attached where
the projected sales for August are 41 as at May 1st
the projected sales for August are 45 as at May 8th

NOTE : For reasons I will NOT go into,  the months will be displayed in RANDOM sequences on the sheet.

WHAT I WANT!

See yellow highlights on sheet - headed "Difference".

I want a formula in column "K" which takes the month in Column "F" (August, value 45) and subtracts the corresponding value in Column "B".  (e.g. 45-41=4)

(I have tried VLookup to no avail).
0
Question by:Patrick O'Dea
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 2
• 2

LVL 23

Expert Comment

ID: 39162499
No example sheet attached...
0

Author Comment

ID: 39162505
See attached !

(I forgot this in the original!)
HotelEE.xlsx
0

LVL 23

Accepted Solution

NBVC earned 2000 total points
ID: 39162528
Try:

=VLOOKUP(J4,\$F\$4:\$G\$7,2,0)-VLOOKUP(J4,\$B\$4:\$C\$7,2,0)

or

=SUMIF(\$F\$4:\$F\$7,J4,\$G\$4:\$G\$7)-SUMIF(\$B\$4:\$B\$7,J4,\$C\$4:\$C\$7)
0

Author Closing Comment

ID: 39162540
Perfect!  (I used the VLookup solution)
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
###### Suggested Courses
Course of the Month14 days, 11 hours left to enroll