Sumproduct to return text / or ifs formula

LindsayB

New Member
Joined
Jun 12, 2019
Messages
1
Hi,

I am trying to work out a formula that written out looks like this

Find 8th March in this table array and if the value is £4.08 return the nominal code in column B.

Can someone help with the formula for this please.

Thank you
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Some sort of construction like this:

=IF(VLOOKUP(DATE(2019,3,8),$A$1:$C$20,3,0)=4.08,VLOOKUP(DATE(2019,3,8),$A$1:$C$20,2,0),"Not equal to")
 
Upvote 0
With sumproduct

<table border="1" cellspacing="0" style="font-family:Calibri,Arial; font-size:11pt; background-color:#ffffff; "> <colgroup><col style="font-weight:bold; width:30px; " /><col style="width:97.9px;" /><col style="width:121.66px;" /><col style="width:76.04px;" /><col style="width:43.72px;" /><col style="width:76.04px;" /><col style="width:105.5px;" /><col style="width:76.04px;" /></colgroup><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td > </td><td >A</td><td >B</td><td >C</td><td >D</td><td >E</td><td >F</td><td >G</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >1</td><td style="background-color:#ffc000; font-weight:bold; text-align:center; ">Date</td><td style="background-color:#ffc000; font-weight:bold; text-align:center; ">Nominal Code</td><td style="background-color:#ffc000; font-weight:bold; text-align:center; ">Value</td><td > </td><td style="background-color:#ffc000; font-weight:bold; text-align:center; ">Date</td><td style="background-color:#ffc000; font-weight:bold; text-align:center; ">Nominal Code</td><td style="background-color:#ffc000; font-weight:bold; text-align:center; ">Value</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >2</td><td style="text-align:right; ">06/03/2019</td><td >cod1</td><td style="text-align:right; ">4.01</td><td > </td><td style="text-align:right; ">08/03/2019</td><td style="text-align:right; ">4.08</td><td style="background-color:#92d050; ">cod4</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >3</td><td style="text-align:right; ">07/03/2019</td><td >cod2</td><td style="text-align:right; ">4.02</td><td > </td><td > </td><td > </td><td > </td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >4</td><td style="text-align:right; ">08/03/2019</td><td >cod3</td><td style="text-align:right; ">4.05</td><td > </td><td > </td><td > </td><td > </td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >5</td><td style="background-color:#92d050; text-align:right; ">08/03/2019</td><td style="background-color:#92d050; ">cod4</td><td style="background-color:#92d050; text-align:right; ">4.08</td><td > </td><td > </td><td > </td><td > </td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >6</td><td style="text-align:right; ">10/03/2019</td><td >cod5</td><td style="text-align:right; ">4.11</td><td > </td><td > </td><td > </td><td > </td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >7</td><td style="text-align:right; ">11/03/2019</td><td >cod6</td><td style="text-align:right; ">4.14</td><td > </td><td > </td><td > </td><td > </td></tr></table><br /><table style="font-family:Arial; font-size:10pt; border-style: groove ;border-color:#00ff00;background-color:#fffcf9; color:#000000; "><tr><td ><b></b></td></tr><tr><td ><table border = "1" cellspacing="0" cellpadding="2" style="font-family:Arial; font-size:9pt;"><tr style="background-color:#cacaca; font-size:10pt;"><td >Cell</td><td >Formula</td></tr><tr><td >G2</td><td >=INDEX(B2:B7,SUMPRODUCT(($A$2:$A$7=E2)*($C$2:$C$7=F2)*ROW($B$2:$B$7))-ROW($B$1))</td></tr></table></td></tr></table>
 
Upvote 0

Forum statistics

Threads
1,224,830
Messages
6,181,227
Members
453,025
Latest member
Hannah_Pham93

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