How to add content of two referenced rows and columns to be added if numbers and keep separate if text in one cell

nsa1

New Member
Joined
Jul 11, 2023
Messages
39
Office Version
  1. 2010
Hello,

I've a formula for a cell that based on the cell x and y it gives me a value of either number, text or blank space and it's working fine.

The problem comes when I try to use the same formula for, in my example with three different months gives me the following answers:
1 Name: Andy and Month Jan - gives me xxx
2 Name: Andy and Month Feb - gives me xyx, yz (if I have two xyx and/or yz then only list it once)
3 Name: Andy and Month Mar - gives me 199

My current formula for greenbox is
=IF(ISBLANK(INDEX(C3:E13, MATCH(H2,B3:B13,0),MATCH(G3, C2:E2,0))),"",INDEX(C3:E13, MATCH(H2,B3:B13,0),MATCH(G3, C2:E2,0)))
 

Attachments

  • reference.png
    reference.png
    65.1 KB · Views: 8

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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