Array formula

mbtaichi

Board Regular
Joined
Jan 5, 2016
Messages
71
Hi ,
I have this formula created with the help of this message board, thank you.

=SUM(COUNTIF($B6,"*"&{"M","TU","W","TH","F","SA"}&"*")*{7.42,7.08,8.5,8.45,8.1,7.25})

I was wondering if it is possible to but not have the values that are added hard coded into the formula but put into individual cells that the formula could look in.


7.427.088.58.458.17.25

<tbody>
</tbody>

That way i could change the values when needed

Thank you for your help
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Here are a couple of options:


Book1
BCDEFGHI
6Thursday8.45
78.457.427.088.58.458.17.25
88.45
Sheet1
Cell Formulas
RangeFormula
C6=SUM(COUNTIF($B6,"*"&{"M","TU","W","TH","F","SA"}&"*")*{7.42,7.08,8.5,8.45,8.1,7.25})
C7=SUMPRODUCT(COUNTIF($B6,"*"&{"M","TU","W","TH","F","SA"}&"*")*D7:I7)
C8=LOOKUP(2,1/(SEARCH({"M","TU","W","TH","F","SA"},B6)),D7:I7)



Your formula is in C6, the formula with a range is in C7, and if your B6 cell can only have 1 date (not something like "Wednesday, Thursday"), then the C8 formula should work too.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,945
Messages
6,127,856
Members
449,411
Latest member
adunn_23

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