SUM figure in one range if another cell opposite contains text

JC83UK

New Member
Joined
Oct 15, 2021
Messages
4
Office Version
  1. 2016
Platform
  1. Windows
Hey Everyone,

I am trying to put together a Voucher system which will help us to track how much money we have taken in voucher sales and how much has been redeemed.

I need the Total Vouchers Redeemed to scan the range J2:K51 for any text (this will be dates) and if found to return the figure from Column F on the same Row.

Spa BOGOF 2021.xlsx
ABCDEFGHIJKLMN
1Paid VoucherFree Voucher Total Voucher Total Paid Bought BySold ByRedeemed ARedemed B
2SPA050/ASPA050/B£ 50.00£ 25.00Guest AJC01/01/202205/01/2022Total Vouchers Sold£ 350.00
3SPA051/ASPA051/B£ 200.00£ 100.00
4SPA052/ASPA052/B£ 100.00£ 50.00Total Vouchers Redeemed
5SPA053/ASPA053/B£ -
6SPA054/ASPA054/B£ -
7SPA055/ASPA055/B£ -
8SPA056/ASPA056/B£ -
9SPA057/ASPA057/B£ -
10SPA058/ASPA058/B£ -
11SPA059/ASPA059/B£ -
12SPA060/ASPA060/B£ -
13SPA061/ASPA061/B£ -
14SPA062/ASPA062/B£ -
15SPA063/ASPA063/B£ -
16SPA064/ASPA064/B£ -
17SPA065/ASPA065/B£ -
18SPA066/ASPA066/B£ -
19SPA067/ASPA067/B£ -
20SPA068/ASPA068/B£ -
21SPA069/ASPA069/B£ -
22SPA070/ASPA070/B£ -
23SPA071/ASPA071/B£ -
24SPA072/ASPA072/B£ -
25SPA073/ASPA073/B£ -
26SPA074/ASPA074/B£ -
27SPA075/ASPA075/B£ -
28SPA076/ASPA076/B£ -
29SPA077/ASPA077/B£ -
30SPA078/ASPA078/B£ -
31SPA079/ASPA079/B£ -
32SPA080/ASPA080/B£ -
33SPA081/ASPA081/B£ -
34SPA082/ASPA082/B£ -
35SPA083/ASPA083/B£ -
36SPA084/ASPA084/B£ -
37SPA085/ASPA085/B£ -
38SPA086/ASPA086/B£ -
39SPA087/ASPA087/B£ -
40SPA088/ASPA088/B£ -
41SPA089/ASPA089/B£ -
42SPA090/ASPA090/B£ -
43SPA091/ASPA091/B£ -
44SPA092/ASPA092/B£ -
45SPA093/ASPA093/B£ -
46SPA094/ASPA094/B£ -
47SPA095/ASPA095/B£ -
48SPA096/ASPA096/B£ -
49SPA097/ASPA097/B£ -
50SPA098/ASPA098/B£ -
51SPA099/ASPA099/B£ -
52 TOTAL £ 175.00
SPA100 - SPA149
Cell Formulas
RangeFormula
N2N2=SUM(E2:E51)
F2:F51F2=SUM(E2/2)
F52F52=SUM(F2:F51)
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Try this in N4:

Excel Formula:
=SUMPRODUCT(F2:F51*SIGN((J2:J51<>"")+(K2:K51<>"")))
 
Upvote 0
Absolutely Amazing! That solved it. Than you very much for the help on this one.
 
Upvote 0

Forum statistics

Threads
1,215,034
Messages
6,122,782
Members
449,095
Latest member
m_smith_solihull

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