Complex excel lookup formula!!

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Find example file in this link, hope it works, using array formula (means you need to confirm press CTRL-SHIFT-ENTER button together, ENTER alone will not works)

https://simpan.ugm.ac.id/public.php?service=files&t=2a39e142a4c912be1111b0ae635b13c1

Cheers

Thank you so much! Question: for k in the small function, why do you use columns(A1) in cell c14? If I want to copy across the formula, it's ok to have that columns(cell) to go anywhere? should I restrict to the first column?
 
Upvote 0
Even better you can use the current cells where you put the first cell fiiled up with formula:

COLUMNS($C$9:$C9) or more convinient for me use =COLUMNS(A1), when you go another column make sure just start with A1
 
Upvote 0
I've uploaded my problem as an image in the following, it's a sample excel that lays out the scenario - excel Pictures, excel Images, excel Photos, excel Videos - Image - TinyPic - Free Image Hosting, Photo Sharing & Video Hosting. So I'm looking for a formula for the red font that spits out the name of the person who is a store owner that owns red paint or home owner that owns red paint, etc. Please help!!!:(:(

Posting a sample directly usable in Excel is not difficult. What follows is done with the the last method among: Excel jeanie, MrExcel HTML Maker or Borders-Copy-Paste. Such makes everything available within the forum itself.

Given
Store
Store
House
John
Bob
Tom
1
Red
Red
2
Blue
Blue
3
Purple
Green
4
Yellow
Needed: C10:D14
Store
House
1
Red
John
Tom
2
Blue
Bob
Tom
3
Purple
John
n/a
4
Green
Bob
n/a
5
Yellow
n/a
Tom

<TBODY>
</TBODY>

C10, control+shift+enter, not just enter, copy across, and down:
Rich (BB code):

=IFERROR(INDEX($B$3:$D$3,
  MATCH(C$9,IF(INDEX($B$4:$D$7,
  MIN(IF($B$4:$D$7=$B10,ROW($B$4:$D$7)-ROW($B$4)+1)),0)=$B10,$B$2:$D$2),0)),
  "n/a")
 
Last edited:
Upvote 0
Posting a sample directly usable in Excel is not difficult. What follows is done with the the last method among: Excel jeanie, MrExcel HTML Maker or Borders-Copy-Paste. Such makes everything available within the forum itself.

Given
Store
Store
House
John
Bob
Tom
1
Red
Red
2
Blue
Blue
3
Purple
Green
4
Yellow
Needed: C10:D14
Store
House
1
Red
John
Tom
2
Blue
Bob
Tom
3
Purple
John
n/a
4
Green
Bob
n/a
5
Yellow
n/a
Tom

<TBODY>
</TBODY>

C10, control+shift+enter, not just enter, copy across, and down:
Rich (BB code):

=IFERROR(INDEX($B$3:$D$3,
  MATCH(C$9,IF(INDEX($B$4:$D$7,
  MIN(IF($B$4:$D$7=$B10,ROW($B$4:$D$7)-ROW($B$4)+1)),0)=$B10,$B$2:$D$2),0)),
  "n/a")

Thank you so much!! I've already used azumi's formula and it's working perfectly fine. Could you please explain the difference in using yours versus azumi? Or if that's too easy to do then could you explain to me how I can create another formula for identifying duplicates? For example, there cannot be two Stores that use Red paint so if I input Red for John Store and Bob Store, it would say DUPLICATE or somethihng so I can know I need to go back and find the duplicate. I don't need to know exactly where the duplicate is, but I'd like to know that Red was found more than once in the first table. Please and thank you!!
 
Upvote 0
Thank you so much!! I've already used azumi's formula and it's working perfectly fine. Could you please explain the difference in using yours versus azumi?

I'm afraid you missed the point of why posted...

Or if that's too easy to do then could you explain to me how I can create another formula for identifying duplicates? For example, there cannot be two Stores that use Red paint so if I input Red for John Store and Bob Store, it would say DUPLICATE or somethihng so I can know I need to go back and find the duplicate. I don't need to know exactly where the duplicate is, but I'd like to know that Red was found more than once in the first table. Please and thank you!!

Try to post (not upload somewhere) a sample here and show what is needed (like I have done for you)...
 
Upvote 0

Forum statistics

Threads
1,214,824
Messages
6,121,784
Members
449,049
Latest member
greyangel23

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