Search data multiple fields & enter data from other cell

marsham

New Member
Joined
Apr 6, 2012
Messages
7
Office Version
  1. 365
Platform
  1. Windows
I've been trying to work on these formulae in stages & have confused myself so much & now, back to square one & is a massive spreadsheet.

I have a worksheet named Data. This comprises a list of names, start & finish dates & values - some names have different values between certain dates.
On worksheet 2, named Review.
I need to search the Datasheet for the correct name, then search to find which date line it falls within & the result would be the value.

I have attached a dummy of the spreadsheet
Columns in orange are the relevant data
Columns in green are the expected results (when I do it by eye)
 

Attachments

  • Review Sheet.png
    Review Sheet.png
    45.4 KB · Views: 18
  • Data Sheet.png
    Data Sheet.png
    51.5 KB · Views: 12

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
You have a better chance of getting forum help if you use XL2BB to show your sample data. Otherwise, it's very difficult to reconstruct your data and sheets.
Also, please change your profile to indicate the version of Excel you are running since there are different options possible with different versions.

One observation from your images: what happens when an employee is duplicated (e.g., Spec Adam A) ?
 
Last edited:
Upvote 0
Rate Search - Check.xlsx
N
16
Review

Rate Search - Check.xlsx
Q
3
Data
 
Upvote 0
Nice try, but nothing was shown in those two.
Sorry - try again

Running Excel 365

With any duplicate name, dates - if it throws an error, it will let me go in & clean up the data sheet which has info which my be incorrect


Rate Search - Check.xlsx
ABCDEFGHJK
11/07/202131/06/22
2ChargedCorrections
3CategoryResourceCost RateCharge RateReferenceCONCRateStart DateEnd Date
4StaffAdam ASTD$1.00$2.001.41.4 STD$5.0017/05/202120/05/2022
5StaffAdam A - NWRNWR$5.00$10.001.41.4 NWR$15.0017/05/202120/05/2022
6StaffSpec Adam ASTD$2.00$3.001.41.4 STD$5.0017/05/202120/05/2022
7StaffSpec Adam A - NWRNWR$7.50$15.001.41.4 NWR$15.0017/05/202120/05/2022
8StaffSpec Adam ASTD$4.00$5.001.41.4 STD$5.0017/05/202120/05/2022
9CrewSpec Eve ESTD$5.00$6.001.31.3 STD$10.001/07/201927/06/2021
10CrewSpec Eve ESTD$6.00$7.001.31.3 STD$10.0028/06/202130/04/2022
11CrewSpec Eve ESTD$7.00$8.001.31.3 STD$10.001/05/20222/05/2023
12CrewSpec Eve E - NWRNWR$10.00$20.001.31.3 NWR$20.001/07/201927/06/2021
13CrewSpec Eve E - NWRNWR$12.00$24.001.31.3 NWR$20.0028/06/202130/04/2022
14CrewSpec Eve E - NWRNWR$15.00$30.001.31.3 NWR$20.001/05/20222/05/2023
15CrewSpec Eve E - SBRSBR$2.50$3.001.31.3 SBR$10.0023/08/202130/04/2022
16CrewSpec Eve E - SBRSBR$3.50$4.001.31.3 SBR$10.001/05/20222/05/2023
Data
Cell Formulas
RangeFormula
K11,K16,K14K11=NOW()
G9:G16G9=CONCATENATE(F9," ",C9)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
J4:K6Expression=AND($J4>=$J$1, $J4<=$K$1)textNO
K1:K6,K18:K1048360Cell Valuecontains "NOW()"textNO


Rate Search - Check.xlsx
ABCDEFGHIJKLMNOPQR
1JobEmpTypeJobStartEndUnitsChgCostBnaCOST USEDCHG USEDCORRECT RATECOST USEDCHG USEDCORRECT RATE
261071Adam AStaff01-Dec-202118:3006:3012$120.00$90.0075589$1.00$2.00$5.00
361086Adam A - NWRStaff02-Dec-202119:0005:0010$100.00$75.0075623$5.00$10.00$15.00
461155Spec Adam AStaff09-Dec-202119:0004:008.5$85.00$63.7575759$2.00$3.00$5.00
560884Spec Eve ECrew 17-Nov-202110:0011:301.5$15.00$11.2575126$6.00$7.00$15.00
661071Spec Eve E - NWRCrew 01-Dec-202118:4506:0011.25$168.75$337.5075589$12.00$24.00$5.00
761086Spec Eve E - NWRCrew 02-Dec-202118:3004:4510.25$153.75$307.5075591$12.00$24.00$10.00
861123Spec Eve E - SBRCrew 06-Dec-202118:4505:1510$150.00$300.0075682$2.50$3.00$10.00
961124Spec Eve E - SBRCrew 07-Dec-202118:4505:3010.75$161.25$80.6375705$2.50$3.00$10.00
10
11EXPECTED RESULTFormulated Result
Review
Cell Formulas
RangeFormula
L2:M4L2=Data!D4
N2:N9N2=Data!H4
L5:M5L5=Data!D10
L6:M6,L8:M8L6=Data!D13
L7:M7,L9:M9L7=Data!D13
I6:I8I6=H6*2
I9I9=H9/2
 
Upvote 0
You got the XL2BB correct this time.
My first observation, which has nothing to do with your request, is that placing the date in ALL of the rows is going to drastically blow up your file size and slow down your application.

My second observation and question I posed initially is what do you want done with an entry such as "Spec Adam A" when this person's dates are the same in both entries on the Data sheet?

After a bit more coffee, I'll take a look at your issue.
 
Upvote 0

Forum statistics

Threads
1,223,248
Messages
6,171,021
Members
452,374
Latest member
keccles

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