Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Excel value lookup and view in sheet

Posted on 2014-03-30
13
Medium Priority
?
259 Views
Last Modified: 2014-04-03
I have a workbook that has three sheets. I need to accomplish 2 things,

1. In the summary sheet, I need to use an index or sumproduct to look up matching set of origin & destination zips and return zone. (zip sheet column C).
The origin and destination zips get entered on Summary sheet in 5 digit.
However, the lookup is for only RIGHT (3) numbers.
I have been usuccessfully  using the following formula, but at least you can see what I am going for.
=SUMPRODUCT((Zone!$A$2:$A$932872=TRIM(RIGHT(VALUE(B2),3)))*(Zone!$B$2:$B$932872=TRIM(RIGHT(VALUE(C2),3))),(Zone!$C$2:$C$932872))

2. Depending on the code in B4, I would like to show the data from RATE sheet beginning in cell B7. If I can it to work for the following, I can adjust for additional codes.

if B4 = PO show Rate!A32 in Summary sheet starting B7.
It can show everything below Rate!A32

THANKS!!!
Sample.xlsx
0
Comment
Question by:Euro5
[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
  • Learn & ask questions
  • 7
  • 6
13 Comments
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 39965737
Try

=SUMPRODUCT((Zone!$A$2:$A$932872=VALUE(RIGHT(B2,3)))*(Zone!$B$2:$B$932872=VALUE(RIGHT(C2,3))),(Zone!$C$2:$C$932872))
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 39965840
I am struggling to understand what you are asking in part 2. Can you show the intended result in a workbook?
0
 

Author Comment

by:Euro5
ID: 39966232
This shows if PO is in Summary!B4 - Rate!A32 begins the view.

If SO is in Summary!B4, - Rate!A200 begins the view.

It should work like a hyperlink but viewed in the spreadsheet.

Hope that helps!!
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:Euro5
ID: 39966243
Sorry, example did not attach on previous.
Sample.xlsx
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 39966251
How can I relate PO with A32?
0
 

Author Comment

by:Euro5
ID: 39966271
I was only thinking to hard code it to the location in Rate tab.
0
 

Author Comment

by:Euro5
ID: 39966273
If I used the code PO in the Rate tab, could I have it search for that location in Rate tab?
Not sure best option.
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 39966427
Yes, the text in the summary tab should be identical to the text in the rate tab.

There is also an option to set up a lookup table listing PO against whatever is the expanded form and that table is used to look up the appropriate location.

BTW did the formula work as desired?
0
 

Author Comment

by:Euro5
ID: 39966436
The formula worked perfectly, thanks!! I put it in the second example workbook that I uploaded.

Do you think that you can help to show Rate data in the Summary tab by using the A4 field?
Thanks again!
0
 

Author Comment

by:Euro5
ID: 39966739
Saquib,
Can you help me with this or should I accept this request and enter step 2 on another request?

Thanks!
Beth
0
 
LVL 43

Accepted Solution

by:
Saqib Husain, Syed earned 2000 total points
ID: 39967074
I am working on it.
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 39968620
Complete the list on the Codes sheet and then you can change the code on the summary sheet to see the appropriate table. Remember that to use this you need to have macros enabled.
Sample-2.xlsm
0
 

Author Closing Comment

by:Euro5
ID: 39975164
WOW, so great!! Thank you so much, it's perfect!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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…
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question