Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to lookup data values from table when using multiple cells?

Status
Not open for further replies.

mistermopar

Civil/Environmental
Jan 5, 2000
14
This is probably not a big deal to the Excel gurus out there, but I've been looking on the net for hours this morning trying to figure this out and I'm still having no luck.

In the attached spreadsheet, I have a fairly large data table (SCS tabular hydrograph data), and that table doesn't have "unique" values, there are 36 values for each Tc, 12 values for each Ia/p value, and then also 12 time slots). I need to pull out the correct value by narrowing my search using all 3 input values to arrive at the correct data line.
See the red values in the attached spreadsheet for the input string, I'm trying to 'fill out' the white cells to the right using data pulled from the correct data line below.

To arrive at a unique answer, I need to have 3 values match to decide which LINE of the data table is correct. This is where I'm having the issue. Vlookup & Match, and other common functions do not seem to support multiple inputs (at least I can't figure out how to input an array).

I imagine this to be relatively complex 'nested' formula of sorts, but it seems I'm in over my head, I'm just ok with excel, not a master by any means.

Thanks for any help.
-sam
 
Replies continue below

Recommended for you

I don't know if there's an easy way, but it would be fairly simple to make a macro to do what you want.
 
I was able to find an excel guru over here that just answered my question:
I hadn't really gave SUMPRODUCT a 2nd glance for this case, but it was the way to go! I'll post it here in case it helps someone else with a similar problem.

***************
Try, in F4:

=SUMPRODUCT(--($C$46:$C$405=$C4),--($D$46:$D$405=$D4),--($E$46:$E$405=$E4),F$46:F$405)

copied down and across the table
***************
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor