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 formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,632
Latest member
jladair

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